Class WriterException

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

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

      Constructors 
      Constructor Description
      WriterException​(int errorCode)  
      WriterException​(java.lang.String s)  
      WriterException​(java.lang.String s, int errorCode)  
      WriterException​(java.lang.String s, java.lang.Throwable throwable)  
      WriterException​(java.lang.String s, java.lang.Throwable throwable, int errorCode)  
      WriterException​(java.lang.String s, java.lang.Throwable throwable, javax.ws.rs.core.Response response)  
      WriterException​(java.lang.String s, javax.ws.rs.core.Response response)  
      WriterException​(java.lang.Throwable throwable)  
      WriterException​(java.lang.Throwable throwable, int errorCode)  
      WriterException​(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

      • WriterException

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

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

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

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

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

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

        public WriterException​(int errorCode)
      • WriterException

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

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

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