Methods Summary |
---|
public int | getErrorCode()Return the error code.
// ------------------------------------------------------------- Properties
return (this.errorCode);
|
public java.lang.String | getExceptionType()Return the exception type.
return (this.exceptionType);
|
public java.lang.String | getLocation()Return the location.
return (this.location);
|
public void | setErrorCode(int errorCode)Set the error code.
this.errorCode = errorCode;
|
public void | setErrorCode(java.lang.String errorCode)Set the error code (hack for default XmlMapper data type).
try {
this.errorCode = Integer.parseInt(errorCode);
} catch (Throwable t) {
this.errorCode = 0;
}
|
public void | setExceptionType(java.lang.String exceptionType)Set the exception type.
this.exceptionType = exceptionType;
|
public void | setLocation(java.lang.String location)Set the location.
// if ((location == null) || !location.startsWith("/"))
// throw new IllegalArgumentException
// ("Error Page Location must start with a '/'");
this.location = RequestUtil.URLDecode(location);
|
public java.lang.String | toString()Render a String representation of this object.
StringBuffer sb = new StringBuffer("ErrorPage[");
if (exceptionType == null) {
sb.append("errorCode=");
sb.append(errorCode);
} else {
sb.append("exceptionType=");
sb.append(exceptionType);
}
sb.append(", location=");
sb.append(location);
sb.append("]");
return (sb.toString());
|