Class ClientErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.dmfs.httpessentials.exceptions.ProtocolException
org.dmfs.httpessentials.exceptions.UnexpectedStatusException
org.dmfs.httpessentials.exceptions.ClientErrorException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NotFoundException,UnauthorizedException
This is a special
UnexpectedStatusException for 4xx status codes (i.e. client errors).- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionClientErrorException(HttpStatus status) Create a newClientErrorException.ClientErrorException(HttpStatus status, String message) Create a newClientErrorExceptionwith 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
-
ClientErrorException
Create a newClientErrorException.- Parameters:
status- TheHttpStatusreturned by the server.
-
ClientErrorException
Create a newClientErrorExceptionwith a message.- Parameters:
status- TheHttpStatusreturned by the server.message- An error message.
-