Class Failure

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DefaultOptionsMethodException, LoggableFailure, NotFoundException

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 $
See Also:
  • Field Details

    • errorCode

      protected int errorCode
    • loggable

      protected boolean loggable
    • response

      protected javax.ws.rs.core.Response response
  • Constructor Details

    • Failure

      public Failure(String s, javax.ws.rs.core.Response response)
    • Failure

      public Failure(String s, Throwable throwable, javax.ws.rs.core.Response response)
    • Failure

      public Failure(Throwable throwable, javax.ws.rs.core.Response response)
    • Failure

      public Failure(String s, Throwable throwable)
    • Failure

      public Failure(Throwable throwable)
    • Failure

      public Failure(String s)
    • Failure

      public Failure(int errorCode)
    • Failure

      public Failure(String s, int errorCode)
    • Failure

      public Failure(String s, Throwable throwable, int errorCode)
    • Failure

      public Failure(Throwable throwable, int errorCode)
  • 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)