类 InvalidMediaTypeException

所有已实现的接口:
Serializable

public class InvalidMediaTypeException extends IllegalArgumentException
Exception thrown from MediaType.parseMediaType(String) in case of encountering an invalid media type specification String.
从以下版本开始:
2019-12-08 20:03
作者:
Juergen Hoeller, TODAY
另请参阅:
  • 字段详细资料

    • mediaType

      private final String mediaType
  • 构造器详细资料

    • InvalidMediaTypeException

      public InvalidMediaTypeException(String mediaType, String message)
      Create a new InvalidMediaTypeException for the given media type.
      参数:
      mediaType - the offending media type
      message - a detail message indicating the invalid part
    • InvalidMediaTypeException

      InvalidMediaTypeException(cn.taketoday.util.InvalidMimeTypeException ex)
      Constructor that allows wrapping InvalidMimeTypeException.
  • 方法详细资料

    • getMediaType

      public String getMediaType()
      Return the offending media type.