程序包 cn.taketoday.web
类 NotAcceptableStatusException
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.NotAcceptableStatusException
- 所有已实现的接口:
HttpStatusCodeProvider,ErrorResponse,Serializable
Exception for errors that fit response status 406 (not acceptable).
- 从以下版本开始:
- 4.0 2022/3/2 16:20
- 作者:
- Rossen Stoyanchev, Harry Yang
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明private static final long -
构造器概要
构造器构造器说明NotAcceptableStatusException(String reason) Constructor for when the requested Content-Type is invalid.NotAcceptableStatusException(List<MediaType> mediaTypes) Constructor for when the requested Content-Type is not supported. -
方法概要
修饰符和类型方法说明Return HttpHeaders with an "Accept" header that documents the supported media types, if available, or an empty instance otherwise.Return the list of supported content types in cases when the Accept header is parsed but not supported, or an empty list otherwise.从类继承的方法 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- 另请参阅:
-
supportedMediaTypes
-
-
构造器详细资料
-
NotAcceptableStatusException
Constructor for when the requested Content-Type is invalid. -
NotAcceptableStatusException
Constructor for when the requested Content-Type is not supported.
-
-
方法详细资料
-
getHeaders
Return HttpHeaders with an "Accept" header that documents the supported media types, if available, or an empty instance otherwise.- 指定者:
getHeaders在接口中ErrorResponse- 覆盖:
getHeaders在类中ResponseStatusException
-
getSupportedMediaTypes
Return the list of supported content types in cases when the Accept header is parsed but not supported, or an empty list otherwise.
-