Class ErrorPage
java.lang.Object
org.apache.tomcat.util.descriptor.web.XmlEncodingBase
org.apache.tomcat.util.descriptor.web.ErrorPage
- All Implemented Interfaces:
- Serializable
Representation of an error page element for a web application,
 as represented in a 
<error-page> element in the
 deployment descriptor.- Author:
- Craig R. McClanahan
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintgetName()voidsetErrorCode(int errorCode) Set the error code.voidsetErrorCode(String errorCode) Set the error code (hack for default XmlMapper data type).voidsetExceptionType(String exceptionType) Set the exception type.voidsetLocation(String location) Set the location.toString()Render a String representation of this object.Methods inherited from class org.apache.tomcat.util.descriptor.web.XmlEncodingBasegetCharset, setCharset
- 
Constructor Details- 
ErrorPagepublic ErrorPage()
 
- 
- 
Method Details- 
getErrorCodepublic int getErrorCode()- Returns:
- the error code.
 
- 
setErrorCodepublic void setErrorCode(int errorCode) Set the error code.- Parameters:
- errorCode- The new error code
 
- 
setErrorCodeSet the error code (hack for default XmlMapper data type).- Parameters:
- errorCode- The new error code
 
- 
getExceptionType- Returns:
- the exception type.
 
- 
setExceptionTypeSet the exception type.- Parameters:
- exceptionType- The new exception type
 
- 
getLocation- Returns:
- the location.
 
- 
setLocationSet the location.- Parameters:
- location- The new location
 
- 
toStringRender a String representation of this object.
- 
getName
 
-