All Implemented Interfaces:
Serializable

public class URIException extends HttpException
The URI parsing and escape encoding exception.
Version:
$Revision: 480424 $ $Date: 2002/03/14 15:14:01
See Also:
  • Field Details

    • UNKNOWN

      public static final int UNKNOWN
      No specified reason code.
      See Also:
    • PARSING

      public static final int PARSING
      The URI parsing error.
      See Also:
    • UNSUPPORTED_ENCODING

      public static final int UNSUPPORTED_ENCODING
      The unsupported character encoding.
      See Also:
    • ESCAPING

      public static final int ESCAPING
      The URI escape encoding and decoding error.
      See Also:
    • PUNYCODE

      public static final int PUNYCODE
      The DNS punycode encoding or decoding error.
      See Also:
    • reasonCode

      protected int reasonCode
      The reason code.
    • reason

      protected String reason
      The reason message.
  • Constructor Details

    • URIException

      public URIException()
      Default constructor.
    • URIException

      public URIException(int reasonCode)
      The constructor with a reason code argument.
      Parameters:
      reasonCode - the reason code
    • URIException

      public URIException(int reasonCode, String reason)
      The constructor with a reason string and its code arguments.
      Parameters:
      reasonCode - the reason code
      reason - the reason
    • URIException

      public URIException(String reason)
      The constructor with a reason string argument.
      Parameters:
      reason - the reason
  • Method Details

    • getReasonCode

      public int getReasonCode()
      Get the reason code.
      Overrides:
      getReasonCode in class HttpException
      Returns:
      the reason code
    • setReasonCode

      public void setReasonCode(int reasonCode)
      Deprecated.
      Callers should set the reason code as a parameter to the constructor.
      Set the reason code.
      Overrides:
      setReasonCode in class HttpException
      Parameters:
      reasonCode - the reason code
    • getReason

      public String getReason()
      Deprecated.
      You should instead call Throwable.getMessage().
      Get the reason message.
      Overrides:
      getReason in class HttpException
      Returns:
      the reason message
    • setReason

      public void setReason(String reason)
      Deprecated.
      Callers should instead set this via a parameter to the constructor.
      Set the reason message.
      Overrides:
      setReason in class HttpException
      Parameters:
      reason - the reason message