public class ErrorPage extends Object implements Serializable
<error-page>
element in the
deployment descriptor.Constructor and Description |
---|
ErrorPage() |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Return the error code.
|
String |
getExceptionType()
Return the exception type.
|
String |
getLocation()
Return the location.
|
String |
getReason()
Gets the reason string that is associated with the error (status) code
for which this error page is active.
|
void |
setErrorCode(int errorCode)
Set the error code.
|
void |
setErrorCode(String errorCode)
Set the error code (hack for default XmlMapper data type).
|
void |
setExceptionType(String exceptionType)
Set the exception type.
|
void |
setLocation(String location)
Set the location.
|
void |
setReason(String reason)
Sets the reason string to be associated with the error (status) code
for which this error page is active.
|
String |
toString()
Render a String representation of this object.
|
public int getErrorCode()
public void setErrorCode(int errorCode)
errorCode
- The new error codepublic void setErrorCode(String errorCode)
errorCode
- The new error codepublic String getExceptionType()
public void setExceptionType(String exceptionType)
exceptionType
- The new exception typepublic String getLocation()
public void setLocation(String location)
location
- The new locationpublic String getReason()
public void setReason(String reason)
reason
- The reason stringCopyright © 2018. All rights reserved.