Package com.jsgalactic.axiom.error
Class UnsupportedMediaTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.jsgalactic.axiom.error.AxiomException
com.jsgalactic.axiom.error.UnsupportedMediaTypeException
- All Implemented Interfaces:
Serializable
A request body whose content type or charset no installed codec accepts (415).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the exception with codeunsupported_media_type.Creates the exception with a specific code, such asmissing_content_type. -
Method Summary
Methods inherited from class com.jsgalactic.axiom.error.AxiomException
code, headers, status, violationsMethods 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 the exception with codeunsupported_media_type. -
UnsupportedMediaTypeException
Creates the exception with a specific code, such asmissing_content_type.- Parameters:
code- safe machine-readable code
-