Package com.oorian.apis
Class HttpRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.oorian.apis.HttpRequestException
- All Implemented Interfaces:
Serializable
Exception thrown when an HTTP request fails due to a network error, timeout, or
non-successful response status code.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpRequestException(String message) Creates a new exception with the specified error message.HttpRequestException(Throwable cause) Creates a new exception wrapping the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpRequestException
Creates a new exception wrapping the specified cause.- Parameters:
cause- the underlying exception.
-
HttpRequestException
Creates a new exception with the specified error message.- Parameters:
message- the error message.
-