Package org.apache.commons.httpclient
Class URIException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.apache.commons.httpclient.HttpException
-
- org.apache.commons.httpclient.URIException
-
- All Implemented Interfaces:
java.io.Serializable
@Deprecated public class URIException extends HttpException
Deprecated.Jakarta Commons HttpClient 3.x is deprecated in the Jenkins project. It is not recommended to use it in any new code. Instead, use HTTP client API plugins as a dependency in your code. E.g. Apache HttpComponents Client API 4.x Plugin or Async HTTP Client Plugin.The URI parsing and escape encoding exception.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intESCAPINGDeprecated.The URI escape encoding and decoding error.static intPARSINGDeprecated.The URI parsing error.static intPUNYCODEDeprecated.The DNS punycode encoding or decoding error.static intUNKNOWNDeprecated.No specified reason code.static intUNSUPPORTED_ENCODINGDeprecated.The unsupported character encoding.
-
Constructor Summary
Constructors Constructor Description URIException()Deprecated.Default constructor.URIException(int reasonCode)Deprecated.The constructor with a reason code argument.URIException(int reasonCode, java.lang.String reason)Deprecated.The constructor with a reason string and its code arguments.URIException(java.lang.String reason)Deprecated.The constructor with a reason string argument.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetReason()Deprecated.You should instead callThrowable.getMessage().intgetReasonCode()Deprecated.Get the reason code.voidsetReason(java.lang.String reason)Deprecated.Callers should instead set this via a parameter to the constructor.voidsetReasonCode(int reasonCode)Deprecated.Callers should set the reason code as a parameter to the constructor.-
Methods inherited from class org.apache.commons.httpclient.HttpException
getCause, printStackTrace, printStackTrace, printStackTrace
-
-
-
-
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, java.lang.String reason)Deprecated.The constructor with a reason string and its code arguments.- Parameters:
reasonCode- the reason codereason- the reason
-
URIException
public URIException(java.lang.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:
getReasonCodein classHttpException- 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:
setReasonCodein classHttpException- Parameters:
reasonCode- the reason code
-
getReason
public java.lang.String getReason()
Deprecated.You should instead callThrowable.getMessage().Get the reason message.- Overrides:
getReasonin classHttpException- Returns:
- the reason message
-
setReason
public void setReason(java.lang.String reason)
Deprecated.Callers should instead set this via a parameter to the constructor.Set the reason message.- Overrides:
setReasonin classHttpException- Parameters:
reason- the reason message
-
-