UnsupportedMediaTypeStatusException
,
with this class never thrown by Spring code and to be removed in 5.3@Deprecated public class MediaTypeNotSupportedStatusException extends ResponseStatusException
Constructor and Description |
---|
MediaTypeNotSupportedStatusException(List<MediaType> supportedMediaTypes)
Deprecated.
Constructor for when the Content-Type is not supported.
|
MediaTypeNotSupportedStatusException(String reason)
Deprecated.
Constructor for when the Content-Type is invalid.
|
Modifier and Type | Method and Description |
---|---|
List<MediaType> |
getSupportedMediaTypes()
Deprecated.
Return the list of supported content types in cases when the Accept
header is parsed but not supported, or an empty list otherwise.
|
getHeaders, getMessage, getReason, getResponseHeaders, getStatus
contains, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MediaTypeNotSupportedStatusException(String reason)