Class UnsupportedMediaTypeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.ehrbase.api.exception.UnsupportedMediaTypeException
All Implemented Interfaces:
Serializable

public class UnsupportedMediaTypeException extends RuntimeException
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 Details

    • UnsupportedMediaTypeException

      public UnsupportedMediaTypeException(String message)
    • UnsupportedMediaTypeException

      public UnsupportedMediaTypeException(String message, Throwable cause)