Class RequestDeniedException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class RequestDeniedException
    extends java.lang.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RequestDeniedException​(Request request)
      Constructs a new instance of this class with a detail message that contains the URI of the Request that was denied.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Request request()
      Returns the Request that was denied.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • 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 Detail

      • request

        public Request request()

        Returns the Request that was denied.

        Returns:
        The Request that was denied.