Class Failure

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadRequestException, DefaultOptionsMethodException, LoggableFailure, ReaderException, ServiceDiscoveryException

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

    • errorCode

      protected int errorCode
    • loggable

      protected boolean loggable
    • response

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

    • Failure

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

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

      public Failure(Throwable throwable, jakarta.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 jakarta.ws.rs.core.Response getResponse()
    • setResponse

      public void setResponse(jakarta.ws.rs.core.Response response)