Module io.jooby

Class MethodNotAllowedException

All Implemented Interfaces:
Serializable

public class MethodNotAllowedException extends StatusCodeException
Whether a HTTP method isn't supported. The getAllow() contains the supported HTTP methods.
Since:
2.4.1
Author:
edgar
See Also:
  • Constructor Details

    • MethodNotAllowedException

      public MethodNotAllowedException(@NonNull String method, @NonNull List<String> allow)
      Creates a new method not allowed exception.
      Parameters:
      method - Requested method.
      allow - Allow methods.
  • Method Details

    • getMethod

      public String getMethod()
      Requested method.
      Returns:
      Requested method.
    • getAllow

      public List<String> getAllow()
      Allow methods.
      Returns:
      Allow methods.