Package org.apache.http.client
Class RedirectException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.http.HttpException
-
- org.apache.http.ProtocolException
-
- org.apache.http.client.RedirectException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CircularRedirectException
public class RedirectException extends ProtocolException
Signals violation of HTTP specification caused by an invalid redirect- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RedirectException()
Creates a new RedirectException with anull
detail message.RedirectException(java.lang.String message)
Creates a new RedirectException with the specified detail message.RedirectException(java.lang.String message, java.lang.Throwable cause)
Creates a new RedirectException with the specified detail message and cause.
-
-
-
Constructor Detail
-
RedirectException
public RedirectException()
Creates a new RedirectException with anull
detail message.
-
RedirectException
public RedirectException(java.lang.String message)
Creates a new RedirectException with the specified detail message.- Parameters:
message
- The exception detail message
-
RedirectException
public RedirectException(java.lang.String message, java.lang.Throwable cause)
Creates a new RedirectException with the specified detail message and cause.- Parameters:
message
- the exception detail messagecause
- theThrowable
that caused this exception, ornull
if the cause is unavailable, unknown, or not aThrowable
-
-