public class HttpMediaTypeNotSupportedException extends HttpMediaTypeException
| Constructor and Description |
|---|
HttpMediaTypeNotSupportedException(MediaType contentType,
java.util.List<MediaType> supportedMediaTypes)
Create a new HttpMediaTypeNotSupportedException.
|
HttpMediaTypeNotSupportedException(MediaType contentType,
java.util.List<MediaType> supportedMediaTypes,
java.lang.String msg)
Create a new HttpMediaTypeNotSupportedException.
|
HttpMediaTypeNotSupportedException(java.lang.String message)
Create a new HttpMediaTypeNotSupportedException.
|
| Modifier and Type | Method and Description |
|---|---|
MediaType |
getContentType()
Return the HTTP request content type method that caused the failure.
|
getSupportedMediaTypesgetRootCausepublic HttpMediaTypeNotSupportedException(java.lang.String message)
message - the exception messagepublic HttpMediaTypeNotSupportedException(@Nullable MediaType contentType, java.util.List<MediaType> supportedMediaTypes)
contentType - the unsupported content typesupportedMediaTypes - the list of supported media typespublic HttpMediaTypeNotSupportedException(@Nullable MediaType contentType, java.util.List<MediaType> supportedMediaTypes, java.lang.String msg)
contentType - the unsupported content typesupportedMediaTypes - the list of supported media typesmsg - the detail message