spring-framework / org.springframework.util / InvalidMimeTypeException

InvalidMimeTypeException

open class InvalidMimeTypeException : IllegalArgumentException

Exception thrown from MimeTypeUtils#parseMimeType(String) in case of encountering an invalid content type specification String.

Author
Juergen Hoeller

Author
Rossen Stoyanchev

Since
4.0

Constructors

<init>

InvalidMimeTypeException(mimeType: String, message: String)

Create a new InvalidContentTypeException for the given content type.

Functions

getMimeType

open fun getMimeType(): String

Return the offending content type.