程序包 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
直接已知子类:
HttpMediaTypeNotAcceptableException, HttpMediaTypeNotSupportedException

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
另请参阅:
  • 字段详细资料

    • serialVersionUID

      private static final long serialVersionUID
      另请参阅:
    • supportedMediaTypes

      private final List<MediaType> supportedMediaTypes
    • body

      private final ProblemDetail body
  • 构造器详细资料

    • HttpMediaTypeException

      protected HttpMediaTypeException(String message)
      Create a new HttpMediaTypeException.
      参数:
      message - the exception message
    • HttpMediaTypeException

      protected HttpMediaTypeException(String message, List<MediaType> supportedMediaTypes)
      Create a new HttpMediaTypeException with a list of supported media types.
      参数:
      supportedMediaTypes - the list of supported media types
  • 方法详细资料