程序包 cn.taketoday.web
类 HttpMediaTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.taketoday.core.NestedRuntimeException
cn.taketoday.web.HttpMediaTypeException
- 所有已实现的接口:
HttpStatusCodeProvider,ErrorResponse,Serializable
public abstract class HttpMediaTypeException
extends cn.taketoday.core.NestedRuntimeException
implements ErrorResponse
Abstract base for exceptions related to media types. Adds a list of supported
MediaTypes.- 从以下版本开始:
- 4.0 2022/1/22 20:03
- 作者:
- Arjen Poutsma, Harry Yang
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明protectedHttpMediaTypeException(String message) Create a new HttpMediaTypeException.protectedHttpMediaTypeException(String message, List<MediaType> supportedMediaTypes) Create a new HttpMediaTypeException with a list of supported media types. -
方法概要
修饰符和类型方法说明getBody()Return the body for the response, formatted as an RFC 7807ProblemDetailwhosestatusshould match the response status.Return the list of supported media types.从类继承的方法 cn.taketoday.core.NestedRuntimeException
contains, getMostSpecificCause, getNestedMessage, getRootCause从类继承的方法 java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 cn.taketoday.web.ErrorResponse
getHeaders, getStatusCode
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
supportedMediaTypes
-
body
-
-
构造器详细资料
-
HttpMediaTypeException
Create a new HttpMediaTypeException.- 参数:
message- the exception message
-
HttpMediaTypeException
Create a new HttpMediaTypeException with a list of supported media types.- 参数:
supportedMediaTypes- the list of supported media types
-
-
方法详细资料
-
getSupportedMediaTypes
Return the list of supported media types. -
getBody
从接口复制的说明:ErrorResponseReturn the body for the response, formatted as an RFC 7807ProblemDetailwhosestatusshould match the response status.- 指定者:
getBody在接口中ErrorResponse
-