org.apache.commons.httpclient
Class URIException
public class URIException
The URI parsing and escape encoding exception.
Version:
- Sung-Gu
- Oleg Kalnichevski
static int | ESCAPING- The URI escape encoding and decoding error.
|
static int | PARSING- The URI parsing error.
|
static int | PUNYCODE- The DNS punycode encoding or decoding error.
|
static int | UNKNOWN- No specified reason code.
|
static int | UNSUPPORTED_ENCODING- The unsupported character encoding.
|
protected String | reason- The reason message.
|
protected int | reasonCode- The reason code.
|
URIException()- Default constructor.
|
URIException(String reason)- The constructor with a reason string argument.
|
URIException(int reasonCode)- The constructor with a reason code argument.
|
URIException(int reasonCode, String reason)- The constructor with a reason string and its code arguments.
|
String | getReason()- You should instead call
getMessage().
|
int | getReasonCode()- Get the reason code.
|
void | setReason(String reason)- Callers should instead set this via a parameter to the constructor.
|
void | setReasonCode(int reasonCode)- Callers should set the reason code as a parameter to the
constructor.
|
ESCAPING
public static final int ESCAPING
The URI escape encoding and decoding error.
- 3
PARSING
public static final int PARSING
The URI parsing error.
- 1
PUNYCODE
public static final int PUNYCODE
The DNS punycode encoding or decoding error.
- 4
UNKNOWN
public static final int UNKNOWN
No specified reason code.
- 0
UNSUPPORTED_ENCODING
public static final int UNSUPPORTED_ENCODING
The unsupported character encoding.
- 2
reason
protected String reason
The reason message.
reasonCode
protected int reasonCode
The reason code.
URIException
public URIException()
Default constructor.
URIException
public URIException(String reason)
The constructor with a reason string argument.
reason - the reason
URIException
public URIException(int reasonCode)
The constructor with a reason code argument.
reasonCode - the reason code
URIException
public URIException(int reasonCode,
String reason) The constructor with a reason string and its code arguments.
reasonCode - the reason codereason - the reason
getReason
public String getReason()
You should instead call getMessage().
Get the reason message.
- getReason in interface HttpException
- the reason message
getReasonCode
public int getReasonCode()
Get the reason code.
- getReasonCode in interface HttpException
- the reason code
setReason
public void setReason(String reason)
Callers should instead set this via a parameter to the constructor.
Set the reason message.
- setReason in interface HttpException
reason - the reason message
setReasonCode
public void setReasonCode(int reasonCode)
Callers should set the reason code as a parameter to the
constructor.
Set the reason code.
- setReasonCode in interface HttpException
reasonCode - the reason code
Copyright (c) 1999-2005 - Apache Software Foundation