Class TooManyRedirectsException

All Implemented Interfaces:
Serializable

public class TooManyRedirectsException extends RedirectionException
An Exception that's thrown when the client has been redirected too often.
See Also:
  • Constructor Details

    • TooManyRedirectsException

      public TooManyRedirectsException(HttpStatus statusCode, int count, URI redirectingLocation, URI newLocation)
      Create a new TooManyRedirectsException for the given status, source and destination.
      Parameters:
      statusCode - The HttpStatus of the last redirect.
      count - The number of redirects to this point.
      redirectingLocation - The source of the redirect.
      newLocation - The destination of the redirect.
  • Method Details

    • count

      public int count()
      Get the number of redirects that has led to this exception.
      Returns:
      The number of redirects.