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, getStatus
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MethodNotAllowedException(String method, Collection<String> supportedMethods)