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:
Serializable
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:
-
Constructor Summary
ConstructorsConstructorDescriptionRecursiveRedirectionException
(URL url, String message) Create a newRecursiveRedirectionException
with the specified URL and detail message.RecursiveRedirectionException
(URL url, String message, Throwable cause) Create a newRecursiveRedirectionException
with the specified URL, detail message and cause.RecursiveRedirectionException
(URL url, Throwable cause) Create a newRecursiveRedirectionException
with the specified URL and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RecursiveRedirectionException
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
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
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.)
-
-
Method Details
-
getURL
Returns the URL that caused this exception to be thrown.- Returns:
- the
URL
that gave rise to this Exception
-