public class InvalidMimeTypeException
extends java.lang.IllegalArgumentException
MimeTypeUtils.parseMimeType(String)
in case of
encountering an invalid content type specification String.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
mimeType |
Constructor and Description |
---|
InvalidMimeTypeException(java.lang.String mimeType,
java.lang.String message)
Create a new InvalidContentTypeException for the given content type.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMimeType()
Return the offending content type.
|
public InvalidMimeTypeException(java.lang.String mimeType, java.lang.String message)
mimeType
- the offending media typemessage
- a detail message indicating the invalid part