Methods Summary |
---|
public int | getErrorCode()Return the error code. -1 if none.
return this.errorCode;
|
public java.lang.String | getErrorSignifierAsString()Return the error code as a string if there is no exception type, or the exception type if the error code is -1.
if ("".equals(this.getExceptionType())) {
return (Integer.valueOf(this.getErrorCode())).toString();
}
return this.getExceptionType();
|
public java.lang.String | getExceptionType()Return the exception type or the empty string if none.
if (this.exceptionType == null) {
this.exceptionType = "";
}
return this.exceptionType;
|
public java.lang.String | getLocation()Return the page to map to
if (this.location == null) {
this.location = "";
}
return this.location;
|
public void | print(java.lang.StringBuffer toStringBuffer)
toStringBuffer.append("ErrorPage ").append(this.getErrorCode()).append(" ").append(
this.getExceptionType()).append(" ").append(this.getLocation());
|
public void | setErrorCode(int errorCode)Sets the error code.
this.errorCode = errorCode;
|
public void | setErrorSignifierAsString(java.lang.String errorSignifier)Sets the error code if the argument is parsable as an int, or the exception type else.
try {
int errorCode = Integer.parseInt(errorSignifier);
this.setErrorCode(errorCode);
this.setExceptionType(null);
return;
} catch (NumberFormatException nfe) {
}
this.setExceptionType(errorSignifier);
|
public void | setExceptionType(java.lang.String exceptionType)Sets the exception type.
this.exceptionType = exceptionType;
|
public void | setLocation(java.lang.String location)
this.location = location;
|