public class MethodNotAllowedException extends ResponseStatusException
| Constructor and Description |
|---|
MethodNotAllowedException(String method,
Collection<String> supportedMethods) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHttpMethod()
Return the HTTP method for the failed request.
|
Set<String> |
getSupportedMethods()
Return the list of supported HTTP methods.
|
getReason, getStatuscontains, getMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MethodNotAllowedException(String method, Collection<String> supportedMethods)