类 InvalidMimeTypeException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- java.lang.IllegalArgumentException
- org.springframework.util.InvalidMimeTypeException
- 所有已实现的接口:
Serializable
public class InvalidMimeTypeException extends IllegalArgumentException
Exception thrown fromMimeTypeUtils.parseMimeType(String)
in case of encountering an invalid content type specification String.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, Rossen Stoyanchev
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 InvalidMimeTypeException(String mimeType, String message)
Create a new InvalidContentTypeException for the given content type.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getMimeType()
Return the offending content type.
构造器详细资料
InvalidMimeTypeException
public InvalidMimeTypeException(String mimeType, String message)
Create a new InvalidContentTypeException for the given content type.- 参数:
mimeType
- the offending media typemessage
- a detail message indicating the invalid part
方法详细资料
getMimeType
public String getMimeType()
Return the offending content type.