java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.jooby.exception.StatusCodeException
io.jooby.exception.MethodNotAllowedException
- All Implemented Interfaces:
Serializable
Whether a HTTP method isn't supported. The
getAllow()
contains the supported HTTP
methods.- Since:
- 2.4.1
- Author:
- edgar
- See Also:
-
Constructor Summary
ConstructorDescriptionMethodNotAllowedException
(String method, List<String> allow) Creates a new method not allowed exception. -
Method Summary
Methods inherited from class io.jooby.exception.StatusCodeException
getStatusCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MethodNotAllowedException
Creates a new method not allowed exception.- Parameters:
method
- Requested method.allow
- Allow methods.
-
-
Method Details
-
getMethod
Requested method.- Returns:
- Requested method.
-
getAllow
Allow methods.- Returns:
- Allow methods.
-