Methods inherited from class java.lang.
Throwable
addSuppressed
,
fillInStackTrace
,
getCause
,
getLocalizedMessage
,
getMessage
,
getStackTrace
,
getSuppressed
,
initCause
,
printStackTrace
,
printStackTrace
,
printStackTrace
,
setStackTrace
,
toString
Methods inherited from class java.lang.
Object
clone
,
equals
,
finalize
,
getClass
,
hashCode
,
notify
,
notifyAll
,
wait
,
wait
,
wait
Methods inherited from interface org.springframework.web.
ErrorResponse
getDetailMessageArguments
,
getTitleMessageCode
,
updateAndGetBody
HttpMediaTypeNotAcceptableException
public
HttpMediaTypeNotAcceptableException
(
String
message)
Constructor for when the
Accept
header cannot be parsed.
Parameters:
message
- the parse error message
HttpMediaTypeNotAcceptableException
public
HttpMediaTypeNotAcceptableException
(
List
<
MediaType
> mediaTypes)
Create a new HttpMediaTypeNotSupportedException.
Parameters:
mediaTypes
- the list of supported media types
getStatusCode
Return the HTTP status code to use for the response.
getHeaders
Return headers to use for the response.