Class WriterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jboss.resteasy.spi.Failure
org.jboss.resteasy.spi.LoggableFailure
org.jboss.resteasy.spi.WriterException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JAXBMarshalException
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 $
- Author:
- Bill Burke
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionWriterException
(int errorCode) WriterException
(String s, int errorCode) WriterException
(String s, jakarta.ws.rs.core.Response response) WriterException
(String s, Throwable throwable) WriterException
(String s, Throwable throwable, int errorCode) WriterException
(String s, Throwable throwable, jakarta.ws.rs.core.Response response) WriterException
(Throwable throwable) WriterException
(Throwable throwable, int errorCode) WriterException
(Throwable throwable, jakarta.ws.rs.core.Response response) -
Method Summary
Methods inherited from class org.jboss.resteasy.spi.Failure
getErrorCode, getResponse, isLoggable, setErrorCode, setLoggable, setResponse
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WriterException
-
WriterException
-
WriterException
-
WriterException
-
WriterException
-
WriterException
-
WriterException
public WriterException(int errorCode) -
WriterException
-
WriterException
-
WriterException
-