org.jboss.resteasy.spi
Class WriterException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jboss.resteasy.spi.Failure
                  extended by org.jboss.resteasy.spi.LoggableFailure
                      extended by org.jboss.resteasy.spi.WriterException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
JAXBMarshalException

public class WriterException
extends LoggableFailure

MessageBodyWriter writeTo() exception

If you do not provide an error code or Response, on the server side it will default to 500 response code. If you provide a throwable, that exception will be matched against an ExceptionMapper first.

Version:
$Revision: 1 $
Author:
Bill Burke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.resteasy.spi.Failure
errorCode, loggable, response
 
Constructor Summary
WriterException(int errorCode)
           
WriterException(java.lang.String s)
           
WriterException(java.lang.String s, int errorCode)
           
WriterException(java.lang.String s, Response response)
           
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, Response response)
           
WriterException(java.lang.Throwable throwable)
           
WriterException(java.lang.Throwable throwable, int errorCode)
           
WriterException(java.lang.Throwable throwable, Response response)
           
 
Method Summary
 
Methods inherited from class org.jboss.resteasy.spi.Failure
getErrorCode, getResponse, isLoggable, setErrorCode, setLoggable
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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,
                       Response response)

WriterException

public WriterException(java.lang.String s,
                       java.lang.Throwable throwable,
                       Response response)

WriterException

public WriterException(java.lang.Throwable throwable,
                       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)


Copyright © 2010. All Rights Reserved.