Package org.ehrbase.api.exception
Class UnsupportedMediaTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.ehrbase.api.exception.UnsupportedMediaTypeException
- All Implemented Interfaces:
Serializable
Runtime Exception to handle a not supported media type which a client
has specified as the response type. I.e. if the header "accept" exists with
value "text/html" but there is no implementation for this target mime-type
this exception can be thrown at each step during processing and finally
handled at the controller to create the corresponding HTTP response.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnsupportedMediaTypeException(String message) UnsupportedMediaTypeException(String message, Throwable 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
-
UnsupportedMediaTypeException
-
UnsupportedMediaTypeException
-