com.oaklandsw.http
Class URIException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended bycom.oaklandsw.http.URIException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HttpException

public class URIException
extends java.io.IOException

The URI parsing and escape encoding exception.

See Also:
Serialized Form

Field Summary
static int ESCAPING
          The URI escape or unescape error.
static int PARSING
          The URI parsing error.
static int UNKNOWN
          No specified reason code.
static int UNSUPPORTED_ENCODING
          The unsupported character encoding.
 
Constructor Summary
URIException()
          Default constructor.
URIException(int rc)
          The constructor with a reason code argument.
URIException(int rc, java.lang.String r)
          The constructor with a reason string and its code arguments.
URIException(java.lang.String r)
          The constructor with a reason string argument.
 
Method Summary
 java.lang.String getReason()
          Get the reason message.
 int getReasonCode()
          Get the reason code.
 void setReason(java.lang.String r)
          Set the reason message.
 void setReasonCode(int rc)
          Set the reason code.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
No specified reason code.

See Also:
Constant Field Values

PARSING

public static final int PARSING
The URI parsing error.

See Also:
Constant Field Values

UNSUPPORTED_ENCODING

public static final int UNSUPPORTED_ENCODING
The unsupported character encoding.

See Also:
Constant Field Values

ESCAPING

public static final int ESCAPING
The URI escape or unescape error.

See Also:
Constant Field Values
Constructor Detail

URIException

public URIException()
Default constructor.


URIException

public URIException(int rc)
The constructor with a reason code argument.

Parameters:
rc - the reason code

URIException

public URIException(int rc,
                    java.lang.String r)
The constructor with a reason string and its code arguments.

Parameters:
rc - the reason code
r - the reason

URIException

public URIException(java.lang.String r)
The constructor with a reason string argument.

Parameters:
r - the reason
Method Detail

getReasonCode

public int getReasonCode()
Get the reason code.

Returns:
the reason code

setReasonCode

public void setReasonCode(int rc)
Set the reason code.


getReason

public java.lang.String getReason()
Get the reason message.

Returns:
the reason message

setReason

public void setReason(java.lang.String r)
Set the reason message.



Copyright © 2002-2005 Oakland Software Incorporated. All Rights Reserved.