public class ErrorPageDescriptor extends Object implements Serializable
Constructor and Description |
---|
ErrorPageDescriptor()
The default constructor.
|
ErrorPageDescriptor(int errorCode,
String location)
Constructor for error code to error page mapping.
|
ErrorPageDescriptor(String exceptionType,
String location)
Constructor for Java exception type to error page mapping.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Return the error code.
|
String |
getErrorSignifierAsString()
If there is an exception type, then the exception type is returned.
|
String |
getExceptionType()
Return the exception type or the empty string if none.
|
String |
getLocation()
Return the page to map to
|
void |
print(StringBuffer toStringBuffer) |
void |
setErrorCode(int errorCode)
Sets the error code.
|
void |
setErrorSignifierAsString(String errorSignifier)
Sets the error code if the argument is parsable as an int, or the exception type else.
|
void |
setExceptionType(String exceptionType)
Sets the exception type.
|
void |
setLocation(String location) |
public ErrorPageDescriptor()
public ErrorPageDescriptor(int errorCode, String location)
public int getErrorCode()
public void setErrorCode(int errorCode)
public String getErrorSignifierAsString()
public void setErrorSignifierAsString(String errorSignifier)
public String getExceptionType()
public void setExceptionType(String exceptionType)
public String getLocation()
public void setLocation(String location)
public void print(StringBuffer toStringBuffer)
Copyright © 2018. All rights reserved.