ErrorDatapublic final class ErrorData extends Object Contains information about an error, for error pages.
The information contained in this instance is meaningless if not used
in the context of an error page. To indicate a JSP is an error page,
the page author must set the isErrorPage attribute of the page directive
to "true". |
Fields Summary |
---|
private Throwable | throwable | private int | statusCode | private String | uri | private String | servletName |
Constructors Summary |
---|
public ErrorData(Throwable throwable, int statusCode, String uri, String servletName)Creates a new ErrorData object.
this.throwable = throwable;
this.statusCode = statusCode;
this.uri = uri;
this.servletName = servletName;
|
Methods Summary |
---|
public java.lang.String | getRequestURI()Returns the request URI.
return this.uri;
| public java.lang.String | getServletName()Returns the name of the servlet invoked.
return this.servletName;
| public int | getStatusCode()Returns the status code of the error.
return this.statusCode;
| public java.lang.Throwable | getThrowable()Returns the Throwable that caused the error.
return this.throwable;
|
|