spring-framework / org.springframework.http / InvalidMediaTypeException

InvalidMediaTypeException

open class InvalidMediaTypeException : IllegalArgumentException

Exception thrown from MediaType#parseMediaType(String) in case of encountering an invalid media type specification String.

Author
Juergen Hoeller

Since
3.2.2

Constructors

<init>

InvalidMediaTypeException(mediaType: String, message: String)

Create a new InvalidMediaTypeException for the given media type.

Functions

getMediaType

open fun getMediaType(): String

Return the offending media type.