Package com.meterware.httpunit
Class RecursiveRedirectionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.meterware.httpunit.RecursiveRedirectionException
-
- All Implemented Interfaces:
java.io.Serializable
public class RecursiveRedirectionException extends java.lang.RuntimeException
Class used to indicate when a request to a resource resulted in an HTTP redirect response that lead to a recursive loop of redirections- Author:
- James Abley
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RecursiveRedirectionException(java.net.URL url, java.lang.String message)
Create a newRecursiveRedirectionException
with the specified URL and detail message.RecursiveRedirectionException(java.net.URL url, java.lang.String message, java.lang.Throwable cause)
Create a newRecursiveRedirectionException
with the specified URL, detail message and cause.RecursiveRedirectionException(java.net.URL url, java.lang.Throwable cause)
Create a newRecursiveRedirectionException
with the specified URL and cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URL
getURL()
Returns the URL that caused this exception to be thrown.
-
-
-
Constructor Detail
-
RecursiveRedirectionException
public RecursiveRedirectionException(java.net.URL url, java.lang.Throwable cause)
Create a newRecursiveRedirectionException
with the specified URL and cause.- Parameters:
url
- theURL
that caused the recursive loop to be detectedcause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
RecursiveRedirectionException
public RecursiveRedirectionException(java.net.URL url, java.lang.String message)
Create a newRecursiveRedirectionException
with the specified URL and detail message.- Parameters:
url
- theURL
that caused the recursive loop to be detected. The URL is saved for later retrieval bygetURL()
message
- the detail message. The detail message is saved for later retrieval byThrowable.getMessage()
-
RecursiveRedirectionException
public RecursiveRedirectionException(java.net.URL url, java.lang.String message, java.lang.Throwable cause)
Create a newRecursiveRedirectionException
with the specified URL, detail message and cause.- Parameters:
url
- theURL
that caused the recursive loop to be detected. The URL is saved for later retrieval bygetURL()
message
- the detail message. The detail message is saved for later retrieval byThrowable.getMessage()
cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
-