java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.inverno.mod.web.base.MissingConverterException
- All Implemented Interfaces:
Serializable
Thrown to indicate that no converter was found for a specific media type.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a missing converter exception to report a null media type.MissingConverterException
(String mediaType) Creates a missing converter exception with the specified media type.MissingConverterException
(String mediaType, String message) Creates a missing converter exception with the specified media type and message.MissingConverterException
(String mediaType, String message, Throwable cause) Creates a missing converter exception with the specified media type, message and cause.MissingConverterException
(String mediaType, Throwable cause) Creates a missing converter exception with the specified media type and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingConverterException
public MissingConverterException()Creates a missing converter exception to report a null media type.
-
MissingConverterException
Creates a missing converter exception with the specified media type.
- Parameters:
mediaType
- The media type
-
MissingConverterException
Creates a missing converter exception with the specified media type and message.
- Parameters:
mediaType
- the media typemessage
- a message
-
MissingConverterException
Creates a missing converter exception with the specified media type and cause.
- Parameters:
mediaType
- the media typecause
- the cause
-
MissingConverterException
Creates a missing converter exception with the specified media type, message and cause.
- Parameters:
mediaType
- the media typemessage
- a messagecause
- the cause
-
-
Method Details
-
getMediaType
Returns the media type.
- Returns:
- the media type or null
-