java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.jooby.exception.StatusCodeException
io.jooby.exception.NotAcceptableException
- All Implemented Interfaces:
Serializable
Whether the accept header isn't acceptable.
- Since:
- 2.5.0
- Author:
- edgar
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class io.jooby.exception.StatusCodeException
getStatusCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NotAcceptableException
Creates a new exception.- Parameters:
contentType
- Content-Type ornull
.
-
-
Method Details
-
getContentType
Content-Type ornull
.- Returns:
- Content-Type or
null
.
-