public final class ErrorData
extends java.lang.Object
PageContext.getErrorData()
Constructor and Description |
---|
ErrorData(java.lang.Throwable throwable,
int statusCode,
java.lang.String uri,
java.lang.String servletName)
Creates a new ErrorData object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRequestURI()
Returns the request URI.
|
java.lang.String |
getServletName()
Returns the name of the servlet invoked.
|
int |
getStatusCode()
Returns the status code of the error.
|
java.lang.Throwable |
getThrowable()
Returns the Throwable that caused the error.
|
public ErrorData(java.lang.Throwable throwable, int statusCode, java.lang.String uri, java.lang.String servletName)
throwable
- The Throwable that is the cause of the errorstatusCode
- The status code of the erroruri
- The request URIservletName
- The name of the servlet invokedpublic java.lang.Throwable getThrowable()
public int getStatusCode()
public java.lang.String getRequestURI()
public java.lang.String getServletName()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.