FileDocCategorySizeDatePackage
ErrorData.javaAPI DocGlassfish v2 API3729Fri May 04 22:34:16 BST 2007javax.servlet.jsp

ErrorData

public 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".
see
PageContext#getErrorData
since
2.0

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.

param
throwable The Throwable that is the cause of the error
param
statusCode The status code of the error
param
uri The request URI
param
servletName The name of the servlet invoked

	this.throwable = throwable;
	this.statusCode = statusCode;
	this.uri = uri;
	this.servletName = servletName;
    
Methods Summary
public java.lang.StringgetRequestURI()
Returns the request URI.

return
The request URI

	return this.uri;
    
public java.lang.StringgetServletName()
Returns the name of the servlet invoked.

return
The name of the servlet invoked

	return this.servletName;
    
public intgetStatusCode()
Returns the status code of the error.

return
The status code of the error

	return this.statusCode;
    
public java.lang.ThrowablegetThrowable()
Returns the Throwable that caused the error.

return
The Throwable that caused the error

	return this.throwable;