类 InvalidMediaTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
cn.taketoday.http.InvalidMediaTypeException
- 所有已实现的接口:
Serializable
Exception thrown from
MediaType.parseMediaType(String) in case of
encountering an invalid media type specification String.- 从以下版本开始:
- 2019-12-08 20:03
- 作者:
- Juergen Hoeller, TODAY
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器构造器说明InvalidMediaTypeException(cn.taketoday.util.InvalidMimeTypeException ex) Constructor that allows wrappingInvalidMimeTypeException.InvalidMediaTypeException(String mediaType, String message) Create a new InvalidMediaTypeException for the given media type. -
方法概要
-
字段详细资料
-
mediaType
-
-
构造器详细资料
-
InvalidMediaTypeException
Create a new InvalidMediaTypeException for the given media type.- 参数:
mediaType- the offending media typemessage- a detail message indicating the invalid part
-
InvalidMediaTypeException
InvalidMediaTypeException(cn.taketoday.util.InvalidMimeTypeException ex) Constructor that allows wrappingInvalidMimeTypeException.
-
-
方法详细资料
-
getMediaType
Return the offending media type.
-