Class ServerErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.dmfs.httpessentials.exceptions.ProtocolException
org.dmfs.httpessentials.exceptions.UnexpectedStatusException
org.dmfs.httpessentials.exceptions.ServerErrorException
- All Implemented Interfaces:
Serializable
This is a special
UnexpectedStatusException for 5xx status codes (i.e. server errors).- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServerErrorException(HttpStatus status) Create a newServerErrorException.ServerErrorException(HttpStatus status, String message) Create a newServerErrorExceptionwith a message. -
Method Summary
Methods inherited from class org.dmfs.httpessentials.exceptions.UnexpectedStatusException
statusMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServerErrorException
Create a newServerErrorException.- Parameters:
status- The status returned by the server.
-
ServerErrorException
Create a newServerErrorExceptionwith a message.- Parameters:
status- The status returned by the server.message- An error message.
-