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:
Serializable
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.The URI escape encoding and decoding error.static final intDeprecated.The URI parsing error.static final intDeprecated.The DNS punycode encoding or decoding error.static final intDeprecated.No specified reason code.static final intDeprecated.The unsupported character encoding. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Default constructor.URIException(int reasonCode) Deprecated.The constructor with a reason code argument.URIException(int reasonCode, String reason) Deprecated.The constructor with a reason string and its code arguments.URIException(String reason) Deprecated.The constructor with a reason string argument. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.You should instead callThrowable.getMessage().intDeprecated.Get the reason code.voidDeprecated.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, printStackTraceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Field Details
-
UNKNOWN
public static final int UNKNOWNDeprecated.No specified reason code.- See Also:
-
PARSING
public static final int PARSINGDeprecated.The URI parsing error.- See Also:
-
UNSUPPORTED_ENCODING
public static final int UNSUPPORTED_ENCODINGDeprecated.The unsupported character encoding.- See Also:
-
ESCAPING
public static final int ESCAPINGDeprecated.The URI escape encoding and decoding error.- See Also:
-
PUNYCODE
public static final int PUNYCODEDeprecated.The DNS punycode encoding or decoding error.- See Also:
-
-
Constructor Details
-
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
Deprecated.The constructor with a reason string and its code arguments.- Parameters:
reasonCode- the reason codereason- the reason
-
URIException
Deprecated.The constructor with a reason string argument.- Parameters:
reason- the reason
-
-
Method Details
-
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
Deprecated.You should instead callThrowable.getMessage().Get the reason message.- Overrides:
getReasonin classHttpException- Returns:
- the reason message
-
setReason
Deprecated.Callers should instead set this via a parameter to the constructor.Set the reason message.- Overrides:
setReasonin classHttpException- Parameters:
reason- the reason message
-