Class RedirectionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.dmfs.httpessentials.exceptions.ProtocolException
org.dmfs.httpessentials.exceptions.UnexpectedStatusException
org.dmfs.httpessentials.exceptions.RedirectionException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RedirectionLoopException,TooManyRedirectsException
An
Exception that's thrown when the server returns a (unhandled) redirect. There are two subclasses for specific error conditions: TooManyRedirectsException and RedirectionLoopException.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRedirectionException(HttpStatus status, String message, URI redirectingLocation, URI newLocation) RedirectionException(HttpStatus status, URI redirectingLocation, URI newLocation) -
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
-
RedirectionException
-
RedirectionException
public RedirectionException(HttpStatus status, String message, URI redirectingLocation, URI newLocation)
-
-
Method Details