Class NoMessageBodyReaderException

  • All Implemented Interfaces:
    java.io.Serializable

    @Deprecated
    public class NoMessageBodyReaderException
    extends javax.ws.rs.WebApplicationException
    Deprecated.
    Will be removed in next minor release.
    This kind of Exception is thrown, if MessageBodyReaders are used, but are not available. Normally this does not occurs.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      MediaType getMediaType()
      Deprecated.
      Returns the media type for which (in combination with the java parameter type, see getParamType()) no MessageBodyReader was found.
      java.lang.Class<?> getParamType()
      Deprecated.
      Returns the java parameter type for which (in combination with the media type, see getMediaType()) no MessageBodyReader was found.
      • Methods inherited from class javax.ws.rs.WebApplicationException

        getResponse
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Deprecated.
        See Also:
        Constant Field Values
      • mediaType

        private final MediaType mediaType
        Deprecated.
      • paramType

        private final java.lang.Class<?> paramType
        Deprecated.
    • Constructor Detail

      • NoMessageBodyReaderException

        public NoMessageBodyReaderException​(MediaType mediaType,
                                            java.lang.Class<?> paramType)
        Deprecated.
        Parameters:
        paramType -
        mediaType -
    • Method Detail

      • getMediaType

        public MediaType getMediaType()
        Deprecated.
        Returns the media type for which (in combination with the java parameter type, see getParamType()) no MessageBodyReader was found.
        Returns:
        the media type for which (in combination with the java parameter type, see getParamType()) no MessageBodyReader was found.
      • getParamType

        public java.lang.Class<?> getParamType()
        Deprecated.
        Returns the java parameter type for which (in combination with the media type, see getMediaType()) no MessageBodyReader was found.
        Returns:
        the java parameter type for which (in combination with the media type, see getMediaType()) no MessageBodyReader was found.