Methods Summary |
---|
public int | getErrorCode()Return the error code.
// END SJSAS 6324911
// ------------------------------------------------------------- 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 java.lang.String | getReason()Gets the reason string that is associated with the error (status) code
for which this error page is active.
return reason;
|
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 void | setReason(java.lang.String reason)Sets the reason string to be associated with the error (status) code
for which this error page is active.
this.reason = reason;
|
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());
|