Class NotAllowedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.http.exceptions.HttpException
io.micronaut.http.exceptions.HttpStatusException
io.micronaut.http.server.exceptions.NotAllowedException
- All Implemented Interfaces:
Serializable
Exception thrown when the request HTTP Method is not allowed.
- Since:
- 4.6.0
- Author:
- Sergio del Amo
- See Also:
-
Constructor Summary
ConstructorDescriptionNotAllowedException
(String requestMethod, URI uri, Set<String> allowedMethods) -
Method Summary
Methods inherited from class io.micronaut.http.exceptions.HttpStatusException
getBody, getStatus
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NotAllowedException
- Parameters:
requestMethod
- Request Methoduri
- The URIallowedMethods
- Allowed methods for URI
-
-
Method Details
-
getRequestMethod
- Returns:
- Request Method
-
getUri
- Returns:
- The URI
-
getAllowedMethods
- Returns:
- Allowed methods for URI
-