程序包 cn.taketoday.web
类 HttpMediaTypeNotAcceptableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.taketoday.core.NestedRuntimeException
cn.taketoday.web.HttpMediaTypeException
cn.taketoday.web.HttpMediaTypeNotAcceptableException
- 所有已实现的接口:
HttpStatusCodeProvider,ErrorResponse,Serializable
Exception thrown when the request handler cannot generate a response that is acceptable by the client.
- 从以下版本开始:
- 4.0 2022/1/22 20:15
- 作者:
- Arjen Poutsma, Harry Yang
- 另请参阅:
-
构造器概要
构造器构造器说明Constructor for when theAcceptheader cannot be parsed.HttpMediaTypeNotAcceptableException(List<MediaType> mediaTypes) Create a new HttpMediaTypeNotSupportedException. -
方法概要
修饰符和类型方法说明Return headers to use for the response.Return the HTTP status code to use for the response.从类继承的方法 cn.taketoday.web.HttpMediaTypeException
getBody, getSupportedMediaTypes从类继承的方法 cn.taketoday.core.NestedRuntimeException
contains, getMostSpecificCause, getNestedMessage, getRootCause
-
构造器详细资料
-
HttpMediaTypeNotAcceptableException
Constructor for when theAcceptheader cannot be parsed.- 参数:
message- the parse error message
-
HttpMediaTypeNotAcceptableException
Create a new HttpMediaTypeNotSupportedException.- 参数:
mediaTypes- the list of supported media types
-
-
方法详细资料
-
getStatusCode
从接口复制的说明:ErrorResponseReturn the HTTP status code to use for the response. -
getHeaders
从接口复制的说明:ErrorResponseReturn headers to use for the response.
-