Package org.forgerock.json.resource
Class UnsupportedMediaTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.forgerock.json.resource.ResourceException
org.forgerock.json.resource.UnsupportedMediaTypeException
- All Implemented Interfaces:
Serializable,Response
Indicates a 415 Unsupported Media Type response that the Content-Type of the request was not acceptable.
- See Also:
-
Field Summary
Fields inherited from class org.forgerock.json.resource.ResourceException
BAD_REQUEST, CONFLICT, FIELD_CAUSE, FIELD_CODE, FIELD_DETAIL, FIELD_MESSAGE, FIELD_REASON, FORBIDDEN, INTERNAL_ERROR, NOT_FOUND, NOT_SUPPORTED, UNAVAILABLE, UNSUPPORTED_MEDIA_TYPE, VERSION_MISMATCH, VERSION_REQUIRED -
Constructor Summary
ConstructorsConstructorDescriptionUnsupportedMediaTypeException(String message) Constructs the exception with a status code of 415 and the given message. -
Method Summary
Methods inherited from class org.forgerock.json.resource.ResourceException
asPromise, getCode, getDetail, getException, getException, getException, getReason, getResourceApiVersion, includeCauseInJsonValue, isServerError, newResourceException, newResourceException, newResourceException, setDetail, setReason, setResourceApiVersion, toJsonValueMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.forgerock.json.resource.Response
getCacheControl
-
Constructor Details
-
UnsupportedMediaTypeException
Constructs the exception with a status code of 415 and the given message.- Parameters:
message- the error message.
-