Class ExceptionUtil
java.lang.Object
org.apache.commons.httpclient.util.ExceptionUtil
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 home for utility methods that handle various exception-related tasks.
- Since:
- 3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Deprecated.If we're running on JDK 1.4 or later, initialize the cause for the given throwable.static boolean
Deprecated.If SocketTimeoutExceptionClass is defined, returns true only if the exception is an instance of SocketTimeoutExceptionClass.
-
Constructor Details
-
ExceptionUtil
public ExceptionUtil()Deprecated.
-
-
Method Details
-
initCause
Deprecated.If we're running on JDK 1.4 or later, initialize the cause for the given throwable.- Parameters:
throwable
- The throwable.cause
- The cause of the throwable.
-
isSocketTimeoutException
Deprecated.If SocketTimeoutExceptionClass is defined, returns true only if the exception is an instance of SocketTimeoutExceptionClass. If SocketTimeoutExceptionClass is undefined, always returns true.- Parameters:
e
- an instance of InterruptedIOException class.- Returns:
- true if the exception signals socket timeout, false otherwise.
-