java.lang.Object | ||||
↳ | java.lang.Throwable | |||
↳ | java.lang.Exception | |||
↳ | javax.servlet.ServletException | |||
↳ | org.springframework.web.HttpMediaTypeException |
Known Direct Subclasses |
Abstract base for exceptions related to media types. Adds a list of supported MediaTypes
.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new MediaTypeException.
| |||||||||||
Create a new HttpMediaTypeNotSupportedException.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the list of supported media types.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
javax.servlet.ServletException
| |||||||||||
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
|
Create a new MediaTypeException.
message | the exception message |
---|
Create a new HttpMediaTypeNotSupportedException.
supportedMediaTypes | the list of supported media types |
---|