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
,ServiceDiscoveryException
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:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
jakarta.ws.rs.core.Response
boolean
void
setErrorCode
(int errorCode) void
setLoggable
(boolean loggable) void
setResponse
(jakarta.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 jakarta.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 jakarta.ws.rs.core.Response getResponse() -
setResponse
public void setResponse(jakarta.ws.rs.core.Response response)
-