Class HttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.dmfs.httpessentials.exceptions.HttpException
- All Implemented Interfaces:
Serializable
An
Exception that's thrown when an error at HTTP level occurred. Some implementations might choose to throw an IOException or a subclass of
it instead of this one.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpException(String message) Create a newHttpExceptionwith a message.HttpException(String message, Throwable cause) Create a newHttpExceptionwith a message and a 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
-
HttpException
Create a newHttpExceptionwith a message.- Parameters:
message- An error message.
-
HttpException
Create a newHttpExceptionwith a message and a cause.- Parameters:
message- An error message.cause- The reaons for this error.
-