Class UnsupportedMediaTypeException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UnsupportedMediaTypeException
    extends ProtocolException
    Signals an unsupported media type.
    Since:
    5.5
    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • 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​(java.lang.String message)
        Creates an exception with the specified detail message.
        Parameters:
        message - The exception detail message