程序包 cn.taketoday.web
类 MethodNotAllowedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.taketoday.core.NestedRuntimeException
cn.taketoday.web.ErrorResponseException
cn.taketoday.web.ResponseStatusException
cn.taketoday.web.MethodNotAllowedException
- 所有已实现的接口:
HttpStatusCodeProvider,ErrorResponse,Serializable
Exception for errors that fit response status 405 (method not allowed).
- 从以下版本开始:
- 2018-7-1 19:38:39
- 作者:
- TODAY
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器构造器说明MethodNotAllowedException(HttpMethod method, Collection<HttpMethod> supportedMethods) MethodNotAllowedException(String method, Collection<HttpMethod> supportedMethods) -
方法概要
修饰符和类型方法说明Return HttpHeaders with an "Allow" header that documents the allowed HTTP methods for this URL, if available, or an empty instance otherwise.Return the HTTP method for the failed request.Return the list of supported HTTP methods.从类继承的方法 cn.taketoday.web.ResponseStatusException
getMessage, getReason从类继承的方法 cn.taketoday.web.ErrorResponseException
getBody, getStatusCode, setDetail, setInstance, setTitle, setType从类继承的方法 cn.taketoday.core.NestedRuntimeException
contains, getMostSpecificCause, getNestedMessage, getRootCause
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
method
-
supportedMethods
-
-
构造器详细资料
-
MethodNotAllowedException
-
MethodNotAllowedException
-
-
方法详细资料
-
getHeaders
Return HttpHeaders with an "Allow" header that documents the allowed HTTP methods for this URL, if available, or an empty instance otherwise.- 指定者:
getHeaders在接口中ErrorResponse- 覆盖:
getHeaders在类中ResponseStatusException
-
getHttpMethod
Return the HTTP method for the failed request. -
getSupportedMethods
Return the list of supported HTTP methods.
-