Class UnsupportedMediaTypeException

All Implemented Interfaces:
Serializable

public class UnsupportedMediaTypeException extends ProtocolException
Signals an unsupported media type.
Since:
5.5
See Also:
  • Constructor Details

    • UnsupportedMediaTypeException

      public UnsupportedMediaTypeException()
      Creates an exception without a detail message.
    • UnsupportedMediaTypeException

      public UnsupportedMediaTypeException(ContentType contentType)
      Creates an exception with a detail message for the given ContentType.
      Parameters:
      contentType - The unsupported ContentType.
    • UnsupportedMediaTypeException

      public UnsupportedMediaTypeException(String message)
      Creates an exception with the specified detail message.
      Parameters:
      message - The exception detail message