Class InvalidMimeTypeException

All Implemented Interfaces:
Serializable

public class InvalidMimeTypeException extends IllegalArgumentException
Exception thrown from MimeTypeUtils.parseMimeType(String) in case of encountering an invalid content type specification String.
Since:
4.0
Author:
Juergen Hoeller, Rossen Stoyanchev
See Also:
  • Constructor Details

    • InvalidMimeTypeException

      public InvalidMimeTypeException(String mimeType, String message)
      Create a new InvalidContentTypeException for the given content type.
      Parameters:
      mimeType - the offending media type
      message - a detail message indicating the invalid part
  • Method Details

    • getMimeType

      public String getMimeType()
      Return the offending content type.