Package 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:
Serializable
- Direct Known Subclasses:
BadRequestException,DefaultOptionsMethodException,LoggableFailure,ReaderException
public class Failure extends 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
Constructors Constructor Description Failure(int errorCode)Failure(String s)Failure(String s, int errorCode)Failure(String s, Response response)Failure(String s, Throwable throwable)Failure(String s, Throwable throwable, int errorCode)Failure(String s, Throwable throwable, Response response)Failure(Throwable throwable)Failure(Throwable throwable, int errorCode)Failure(Throwable throwable, Response response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()ResponsegetResponse()booleanisLoggable()voidsetErrorCode(int errorCode)voidsetLoggable(boolean loggable)voidsetResponse(Response response)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
errorCode
protected int errorCode
-
loggable
protected boolean loggable
-
response
protected Response response
-
-