public abstract class HttpMediaTypeException extends ServletException
MediaTypes
.Modifier | Constructor and Description |
---|---|
protected |
HttpMediaTypeException(java.lang.String message)
Create a new HttpMediaTypeException.
|
protected |
HttpMediaTypeException(java.lang.String message,
java.util.List<MediaType> supportedMediaTypes)
Create a new HttpMediaTypeException with a list of supported media types.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<MediaType> |
getSupportedMediaTypes()
Return the list of supported media types.
|
getRootCause
protected HttpMediaTypeException(java.lang.String message)
message
- the exception messageprotected HttpMediaTypeException(java.lang.String message, java.util.List<MediaType> supportedMediaTypes)
supportedMediaTypes
- the list of supported media typespublic java.util.List<MediaType> getSupportedMediaTypes()