org.apache.commons.httpclient
Class URIException
public class URIException
The URI parsing and escape encoding exception.
$Revision: 155418 $ $Date: 2002/03/14 15:14:01static 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.
PARSING
public static final int PARSING
The URI parsing error.
PUNYCODE
public static final int PUNYCODE
The DNS punycode encoding or decoding error.
UNKNOWN
public static final int UNKNOWN
No specified reason code.
UNSUPPORTED_ENCODING
public static final int UNSUPPORTED_ENCODING
The unsupported character encoding.
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.
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
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