org.jboss.resteasy.spi
Class ReaderException

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.ReaderException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JAXBUnmarshalException, UnauthorizedSignatureException

public class ReaderException
extends LoggableFailure

MessageBodyReader readFrom() exception

If you do not provide an error code or Response, on the server side it will default to 400 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
ReaderException(int errorCode)
           
ReaderException(String s)
           
ReaderException(String s, int errorCode)
           
ReaderException(String s, Response response)
           
ReaderException(String s, Throwable throwable)
           
ReaderException(String s, Throwable throwable, int errorCode)
           
ReaderException(String s, Throwable throwable, Response response)
           
ReaderException(Throwable throwable)
           
ReaderException(Throwable throwable, int errorCode)
           
ReaderException(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

ReaderException

public ReaderException(String s,
                       Response response)

ReaderException

public ReaderException(String s,
                       Throwable throwable,
                       Response response)

ReaderException

public ReaderException(Throwable throwable,
                       Response response)

ReaderException

public ReaderException(String s,
                       Throwable throwable)

ReaderException

public ReaderException(Throwable throwable)

ReaderException

public ReaderException(String s)

ReaderException

public ReaderException(int errorCode)

ReaderException

public ReaderException(String s,
                       int errorCode)

ReaderException

public ReaderException(String s,
                       Throwable throwable,
                       int errorCode)

ReaderException

public ReaderException(Throwable throwable,
                       int errorCode)


Copyright © 2011. All Rights Reserved.