Class URIException

    • Field Detail

      • UNKNOWN

        public static final int UNKNOWN
        Deprecated.
        No specified reason code.
        See Also:
        Constant Field Values
      • PARSING

        public static final int PARSING
        Deprecated.
        The URI parsing error.
        See Also:
        Constant Field Values
      • UNSUPPORTED_ENCODING

        public static final int UNSUPPORTED_ENCODING
        Deprecated.
        The unsupported character encoding.
        See Also:
        Constant Field Values
      • ESCAPING

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

        public static final int PUNYCODE
        Deprecated.
        The DNS punycode encoding or decoding error.
        See Also:
        Constant Field Values
    • Constructor Detail

      • URIException

        public URIException()
        Deprecated.
        Default constructor.
      • URIException

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

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

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

      • getReasonCode

        public int getReasonCode()
        Deprecated.
        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
      • 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