Class ErrorPage

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    ErrorPageDecorator

    public class ErrorPage
    extends Object
    implements Serializable
    Representation of an error page element for a web application, as represented in a <error-page> element in the deployment descriptor.
    Version:
    $Revision: 1.3 $ $Date: 2005/12/08 01:27:40 $
    Author:
    Craig R. McClanahan
    See Also:
    Serialized Form
    • Constructor Detail

      • ErrorPage

        public ErrorPage()
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Return the error code.
      • setErrorCode

        public void setErrorCode​(int errorCode)
        Set the error code.
        Parameters:
        errorCode - The new error code
      • setErrorCode

        public void setErrorCode​(String errorCode)
        Set the error code (hack for default XmlMapper data type).
        Parameters:
        errorCode - The new error code
      • getExceptionType

        public String getExceptionType()
        Return the exception type.
      • setExceptionType

        public void setExceptionType​(String exceptionType)
        Set the exception type.
        Parameters:
        exceptionType - The new exception type
      • getLocation

        public String getLocation()
        Return the location.
      • setLocation

        public void setLocation​(String location)
        Set the location.
        Parameters:
        location - The new location
      • getReason

        public String getReason()
        Gets the reason string that is associated with the error (status) code for which this error page is active.
        Returns:
        The reason string of this error page
      • setReason

        public void setReason​(String reason)
        Sets the reason string to be associated with the error (status) code for which this error page is active.
        Parameters:
        reason - The reason string
      • toString

        public String toString()
        Render a String representation of this object.
        Overrides:
        toString in class Object