public class InvalidMediaTypeException extends IllegalArgumentException
MediaType.parseMediaType(String)
in case of
encountering an invalid media type specification String.Constructor and Description |
---|
InvalidMediaTypeException(String mediaType,
String message)
Create a new InvalidMediaTypeException for the given media type.
|
Modifier and Type | Method and Description |
---|---|
String |
getMediaType()
Return the offending media type.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public String getMediaType()