Class ReaderException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    JAXBUnmarshalException

    public class ReaderException
    extends LoggableFailure
    Any exception thrown by a MessageBodyReader chain that is not an instance of a ReaderException is caught internally by the Resteasy runtime and wrapped with an instance of ReaderException. If you want to have special exception handling for exceptions thrown by MessageBodyReaders, then write an exception mapper for ReaderException. Also, you may extend this class and throw instances of it from your MessageBodyReaders (and interceptors)
    Version:
    $Revision: 1 $
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ReaderException​(int errorCode)  
      ReaderException​(java.lang.String s)  
      ReaderException​(java.lang.String s, int errorCode)  
      ReaderException​(java.lang.String s, java.lang.Throwable throwable)  
      ReaderException​(java.lang.String s, java.lang.Throwable throwable, int errorCode)  
      ReaderException​(java.lang.String s, java.lang.Throwable throwable, javax.ws.rs.core.Response response)  
      ReaderException​(java.lang.String s, javax.ws.rs.core.Response response)  
      ReaderException​(java.lang.Throwable throwable)  
      ReaderException​(java.lang.Throwable throwable, int errorCode)  
      ReaderException​(java.lang.Throwable throwable, javax.ws.rs.core.Response response)  
    • Method Summary

      • 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
    • Constructor Detail

      • ReaderException

        public ReaderException​(java.lang.String s,
                               javax.ws.rs.core.Response response)
      • ReaderException

        public ReaderException​(java.lang.String s,
                               java.lang.Throwable throwable,
                               javax.ws.rs.core.Response response)
      • ReaderException

        public ReaderException​(java.lang.Throwable throwable,
                               javax.ws.rs.core.Response response)
      • ReaderException

        public ReaderException​(java.lang.String s,
                               java.lang.Throwable throwable)
      • ReaderException

        public ReaderException​(java.lang.Throwable throwable)
      • ReaderException

        public ReaderException​(java.lang.String s)
      • ReaderException

        public ReaderException​(int errorCode)
      • ReaderException

        public ReaderException​(java.lang.String s,
                               int errorCode)
      • ReaderException

        public ReaderException​(java.lang.String s,
                               java.lang.Throwable throwable,
                               int errorCode)
      • ReaderException

        public ReaderException​(java.lang.Throwable throwable,
                               int errorCode)