Class InvalidMediaTypeException

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidMediaTypeException
    extends java.lang.IllegalArgumentException
    Exception thrown from MediaType.parseMediaType(String) in case of encountering an invalid media type specification String.
    Since:
    0.5.0
    Author:
    Juergen Hoeller
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMediaType()
      Return the offending media type.
      • 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
    • Method Detail

      • getMediaType

        public java.lang.String getMediaType()
        Return the offending media type.
        Returns:
        the offending media type