Class HttpMediaTypeNotSupportedException

    • Constructor Detail

      • HttpMediaTypeNotSupportedException

        public HttpMediaTypeNotSupportedException​(MediaType contentType,
                                                  List<MediaType> supportedMediaTypes)
        Create a new HttpMediaTypeNotSupportedException.
        Parameters:
        contentType - the unsupported content type
        supportedMediaTypes - the list of supported media types
      • HttpMediaTypeNotSupportedException

        public HttpMediaTypeNotSupportedException​(MediaType contentType,
                                                  List<MediaType> supportedMediaTypes,
                                                  String msg)
        Create a new HttpMediaTypeNotSupportedException.
        Parameters:
        contentType - the unsupported content type
        supportedMediaTypes - the list of supported media types
        msg - the detail message
    • Method Detail

      • getContentType

        public MediaType getContentType()
        Return the HTTP request content type method that caused the failure.