com.meterware.httpunit
Class RecursiveRedirectionException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.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
RecursiveRedirectionException(java.net.URL url, java.lang.String message)
          Create a new RecursiveRedirectionException with the specified URL and detail message.
RecursiveRedirectionException(java.net.URL url, java.lang.String message, java.lang.Throwable cause)
          Create a new RecursiveRedirectionException with the specified URL, detail message and cause.
RecursiveRedirectionException(java.net.URL url, java.lang.Throwable cause)
          Create a new RecursiveRedirectionException with the specified URL and cause.
 
Method Summary
 java.net.URL getURL()
          Returns the URL that caused this exception to be thrown.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RecursiveRedirectionException

public RecursiveRedirectionException(java.net.URL url,
                                     java.lang.Throwable cause)
Create a new RecursiveRedirectionException with the specified URL and cause.

Parameters:
url - the URLthat caused the recursive loop to be detected
cause - the cause (which is saved for later retrieval by the Throwable.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 new RecursiveRedirectionException with the specified URL and detail message.

Parameters:
url - the URL that caused the recursive loop to be detected. The URL is saved for later retrieval by getURL()
message - the detail message. The detail message is saved for later retrieval by Throwable.getMessage()

RecursiveRedirectionException

public RecursiveRedirectionException(java.net.URL url,
                                     java.lang.String message,
                                     java.lang.Throwable cause)
Create a new RecursiveRedirectionException with the specified URL, detail message and cause.

Parameters:
url - the URL that caused the recursive loop to be detected. The URL is saved for later retrieval by getURL()
message - the detail message. The detail message is saved for later retrieval by Throwable.getMessage()
cause - the cause (which is saved for later retrieval by the Throwable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Method Detail

getURL

public java.net.URL getURL()
Returns the URL that caused this exception to be thrown.

Returns:
the URL that gave rise to this Exception

Copyright © 2000-2008 Russell Gold. See license agreement for rights granted.