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.
|
getSupportedMediaTypes
getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HttpMediaTypeNotSupportedException(String message)
message
- the exception messagepublic HttpMediaTypeNotSupportedException(@Nullable MediaType contentType, List<MediaType> supportedMediaTypes)
contentType
- the unsupported content typesupportedMediaTypes
- the list of supported media typespublic HttpMediaTypeNotSupportedException(@Nullable MediaType contentType, List<MediaType> supportedMediaTypes, String msg)
contentType
- the unsupported content typesupportedMediaTypes
- the list of supported media typesmsg
- the detail message