public class HttpMediaTypeNotSupportedException extends HttpMediaTypeException
| Constructor and Description |
|---|
HttpMediaTypeNotSupportedException(MediaType contentType,
List<MediaType> supportedMediaTypes)
Create a new HttpMediaTypeNotSupportedException.
|
HttpMediaTypeNotSupportedException(MediaType contentType,
List<MediaType> supportedMediaTypes,
String msg)
Create a new HttpMediaTypeNotSupportedException.
|
HttpMediaTypeNotSupportedException(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.
|
getSupportedMediaTypesgetRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic HttpMediaTypeNotSupportedException(String message)
message - the exception messagepublic HttpMediaTypeNotSupportedException(MediaType contentType, List<MediaType> supportedMediaTypes)
contentType - the unsupported content typesupportedMediaTypes - the list of supported media typespublic HttpMediaTypeNotSupportedException(MediaType contentType, List<MediaType> supportedMediaTypes, String msg)
contentType - the unsupported content typesupportedMediaTypes - the list of supported media typesmsg - the detail messagepublic MediaType getContentType()