Class RequestMethodNotAllowedException

All Implemented Interfaces:
Serializable

public class RequestMethodNotAllowedException extends RequestException
Exception thrown when a request handler does not allow a specific request method.
See Also:
  • Constructor Details

    • RequestMethodNotAllowedException

      public RequestMethodNotAllowedException()
      Instantiates a new RequestMethodNotAllowedException.
    • RequestMethodNotAllowedException

      public RequestMethodNotAllowedException(String msg)
      Instantiates a new RequestMethodNotAllowedException.
      Parameters:
      msg - a message to associate with the exception
    • RequestMethodNotAllowedException

      public RequestMethodNotAllowedException(Throwable cause)
      Instantiates a new RequestMethodNotAllowedException.
      Parameters:
      cause - the real cause of the exception
    • RequestMethodNotAllowedException

      public RequestMethodNotAllowedException(String msg, Throwable cause)
      Instantiates a new RequestMethodNotAllowedException.
      Parameters:
      msg - the detail message
      cause - the real cause of the exception
    • RequestMethodNotAllowedException

      public RequestMethodNotAllowedException(MethodType requestMethod, String msg)
      Instantiates a new RequestMethodNotAllowedException.
      Parameters:
      requestMethod - the request method
      msg - the detail message
    • RequestMethodNotAllowedException

      public RequestMethodNotAllowedException(MethodType requestMethod)
      Instantiates a new RequestMethodNotAllowedException.
      Parameters:
      requestMethod - the request method
  • Method Details

    • getRequestMethod

      public MethodType getRequestMethod()
      Gets the request method type.
      Returns:
      the request method type