Module io.inverno.mod.http.base
Package io.inverno.mod.http.base
Class UnsupportedMediaTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.inverno.mod.http.base.HttpException
io.inverno.mod.http.base.UnsupportedMediaTypeException
- All Implemented Interfaces:
Serializable
A HTTP exception that indicates that the request body is of an Unsupported Media Type (415)
for the requested resource.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an unsupported media type exception.UnsupportedMediaTypeException
(String message) Creates an unsupported media type exception with the specified message.UnsupportedMediaTypeException
(String message, Throwable cause) Creates an unsupported media type exception with the specified message and cause.Creates an unsupported media type exception with the specified cause. -
Method Summary
Methods inherited from class io.inverno.mod.http.base.HttpException
fromStatus, fromStatus, fromStatus, fromStatus, 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
-
UnsupportedMediaTypeException
public UnsupportedMediaTypeException()Creates an unsupported media type exception.
-
UnsupportedMediaTypeException
Creates an unsupported media type exception with the specified message.
- Parameters:
message
- a message
-
UnsupportedMediaTypeException
Creates an unsupported media type exception with the specified cause.
- Parameters:
cause
- a cause
-
UnsupportedMediaTypeException
Creates an unsupported media type exception with the specified message and cause.
- Parameters:
message
- a messagecause
- a cause
-