org.jboss.resteasy.spi
Class Failure
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jboss.resteasy.spi.Failure
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- DefaultOptionsMethodException, LoggableFailure, NotFoundException, ServiceDiscoveryException
public class Failure
- extends java.lang.RuntimeException
This exception should only be used by Resteasy integrators. Applications code should use WebApplicationException.
This is thrown by Restasy runtime when a failure occurs.
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
- See Also:
- Serialized Form
Constructor Summary |
Failure(int errorCode)
|
Failure(java.lang.String s)
|
Failure(java.lang.String s,
int errorCode)
|
Failure(java.lang.String s,
Response response)
|
Failure(java.lang.String s,
java.lang.Throwable throwable)
|
Failure(java.lang.String s,
java.lang.Throwable throwable,
int errorCode)
|
Failure(java.lang.String s,
java.lang.Throwable throwable,
Response response)
|
Failure(java.lang.Throwable throwable)
|
Failure(java.lang.Throwable throwable,
int errorCode)
|
Failure(java.lang.Throwable throwable,
Response response)
|
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 |
errorCode
protected int errorCode
loggable
protected boolean loggable
response
protected Response response
Failure
public Failure(java.lang.String s,
Response response)
Failure
public Failure(java.lang.String s,
java.lang.Throwable throwable,
Response response)
Failure
public Failure(java.lang.Throwable throwable,
Response response)
Failure
public Failure(java.lang.String s,
java.lang.Throwable throwable)
Failure
public Failure(java.lang.Throwable throwable)
Failure
public Failure(java.lang.String s)
Failure
public Failure(int errorCode)
Failure
public Failure(java.lang.String s,
int errorCode)
Failure
public Failure(java.lang.String s,
java.lang.Throwable throwable,
int errorCode)
Failure
public Failure(java.lang.Throwable throwable,
int errorCode)
getErrorCode
public int getErrorCode()
setErrorCode
public void setErrorCode(int errorCode)
isLoggable
public boolean isLoggable()
setLoggable
public void setLoggable(boolean loggable)
getResponse
public Response getResponse()
Copyright © 2010. All Rights Reserved.