public final class ErrorData extends Object
PageContext.getErrorData()
Constructor and Description |
---|
ErrorData(Throwable throwable,
int statusCode,
String uri,
String servletName)
Creates a new ErrorData object.
|
Modifier and Type | Method and Description |
---|---|
String |
getRequestURI()
Returns the request URI.
|
String |
getServletName()
Returns the name of the servlet invoked.
|
int |
getStatusCode()
Returns the status code of the error.
|
Throwable |
getThrowable()
Returns the Throwable that caused the error.
|
public ErrorData(Throwable throwable, int statusCode, String uri, 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 Throwable getThrowable()
public int getStatusCode()
public String getRequestURI()
public String getServletName()
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.