org.jboss.resteasy.spi
Class LoggableFailure

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BadRequestException, InternalServerErrorException, MethodNotAllowedException, NoMessageBodyWriterFoundFailure, NotAcceptableException, UnauthorizedException, UnsupportedMediaTypeException

public class LoggableFailure
extends Failure

This exception should only be used by Resteasy integrators. Applications code should use WebApplicationException

This is thrown by Resteasy runtime when a failure occurs. It will be logged by the runtime

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
LoggableFailure(int errorCode)
           
LoggableFailure(java.lang.String s)
           
LoggableFailure(java.lang.String s, int errorCode)
           
LoggableFailure(java.lang.String s, Response response)
           
LoggableFailure(java.lang.String s, java.lang.Throwable throwable)
           
LoggableFailure(java.lang.String s, java.lang.Throwable throwable, int errorCode)
           
LoggableFailure(java.lang.String s, java.lang.Throwable throwable, Response response)
           
LoggableFailure(java.lang.Throwable throwable)
           
LoggableFailure(java.lang.Throwable throwable, int errorCode)
           
LoggableFailure(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

LoggableFailure

public LoggableFailure(java.lang.String s,
                       Response response)

LoggableFailure

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

LoggableFailure

public LoggableFailure(java.lang.Throwable throwable,
                       Response response)

LoggableFailure

public LoggableFailure(java.lang.String s,
                       java.lang.Throwable throwable)

LoggableFailure

public LoggableFailure(java.lang.Throwable throwable)

LoggableFailure

public LoggableFailure(java.lang.String s)

LoggableFailure

public LoggableFailure(int errorCode)

LoggableFailure

public LoggableFailure(java.lang.String s,
                       int errorCode)

LoggableFailure

public LoggableFailure(java.lang.String s,
                       java.lang.Throwable throwable,
                       int errorCode)

LoggableFailure

public LoggableFailure(java.lang.Throwable throwable,
                       int errorCode)


Copyright © 2009. All Rights Reserved.