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:
DefaultOptionsMethodException
,LoggableFailure
,NotFoundException
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 $
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
javax.ws.rs.core.Response
boolean
void
setErrorCode
(int errorCode) void
setLoggable
(boolean loggable) void
setResponse
(javax.ws.rs.core.Response response) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
errorCode
protected int errorCode -
loggable
protected boolean loggable -
response
protected javax.ws.rs.core.Response response
-
-
Constructor Details
-
Failure
-
Failure
-
Failure
-
Failure
-
Failure
-
Failure
-
Failure
public Failure(int errorCode) -
Failure
-
Failure
-
Failure
-
-
Method Details
-
getErrorCode
public int getErrorCode() -
setErrorCode
public void setErrorCode(int errorCode) -
isLoggable
public boolean isLoggable() -
setLoggable
public void setLoggable(boolean loggable) -
getResponse
public javax.ws.rs.core.Response getResponse() -
setResponse
public void setResponse(javax.ws.rs.core.Response response)
-