Class RequestDeniedException

All Implemented Interfaces:
Serializable

public final class RequestDeniedException extends RuntimeException

This exception is used to signal that a Request was rejected by the corresponding ClientProvider or RequestHandler. There is no automation in throwing an instance of this class, but all RequestHandlers are encouraged to use this where appropriate.

Author:
Simon Thoresen Hult
See Also:
  • Constructor Details

    • RequestDeniedException

      public RequestDeniedException(Request request)

      Constructs a new instance of this class with a detail message that contains the URI of the Request that was denied.

      Parameters:
      request - The Request that was denied.
  • Method Details

    • request

      public Request request()

      Returns the Request that was denied.

      Returns:
      The Request that was denied.