- All Implemented Interfaces:
Serializable
A HTTP exception that indicates a Not Acceptable (406)
client requested.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a not acceptable exception.NotAcceptableException
(String message) Creates a not acceptable exception with the specified message.NotAcceptableException
(String message, Throwable cause) Creates a not acceptable exception with the specified message and cause.NotAcceptableException
(Throwable cause) Creates a not acceptable exception with the specified cause.NotAcceptableException
(Set<String> acceptableMediaTypes) Creates a not acceptable exception with the specified list of media types accepted by the requested resource.NotAcceptableException
(Set<String> acceptableMediaTypes, String message) Creates a not acceptable exception with the specified list of media types accepted by the requested resource and message.NotAcceptableException
(Set<String> acceptableMediaTypes, String message, Throwable cause) Creates a not acceptable exception with the specified list of media types accepted by the requested resource, message and cause.NotAcceptableException
(Set<String> acceptableMediaTypes, Throwable cause) Creates a not acceptable exception with the specified list of media types accepted by the requested resource and cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of media types accepted by the requested resource.Methods inherited from class io.inverno.mod.http.base.HttpException
getStatus, getStatusCategory, getStatusCode, getStatusReasonPhrase, wrap
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NotAcceptableException
public NotAcceptableException()Creates a not acceptable exception.
-
NotAcceptableException
Creates a not acceptable exception with the specified message.
- Parameters:
message
- a message
-
NotAcceptableException
Creates a not acceptable exception with the specified cause.
- Parameters:
cause
- a cause
-
NotAcceptableException
Creates a not acceptable exception with the specified message and cause.
- Parameters:
message
- a messagecause
- a cause
-
NotAcceptableException
Creates a not acceptable exception with the specified list of media types accepted by the requested resource.
- Parameters:
acceptableMediaTypes
- a list of acceptable media types
-
NotAcceptableException
Creates a not acceptable exception with the specified list of media types accepted by the requested resource and message.
- Parameters:
acceptableMediaTypes
- a list of acceptable media typesmessage
- a message
-
NotAcceptableException
Creates a not acceptable exception with the specified list of media types accepted by the requested resource and cause.
- Parameters:
acceptableMediaTypes
- a list of acceptable media typescause
- a cause
-
NotAcceptableException
Creates a not acceptable exception with the specified list of media types accepted by the requested resource, message and cause.
- Parameters:
acceptableMediaTypes
- a list of acceptable media typesmessage
- a messagecause
- a cause
-
-
Method Details
-
getAcceptableMediaTypes
Returns the list of media types accepted by the requested resource.
- Returns:
- the list of acceptable media types
-