Class RestException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.ws.rs.ProcessingException
javax.ws.rs.client.ResponseProcessingException
com.peterphi.std.guice.restclient.exception.RestException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AuthenticationFailureException, UnboundRestException

public class RestException extends javax.ws.rs.client.ResponseProcessingException
See Also:
  • Constructor Details

    • RestException

      public RestException(String msg, Throwable cause)
    • RestException

      public RestException(int httpCode, String msg)
    • RestException

      public RestException(int httpCode, String msg, Throwable cause)
  • Method Details

    • setErrorCode

      protected void setErrorCode(long code)
    • setHttpCode

      protected void setHttpCode(int httpCode)
    • getErrorCode

      public long getErrorCode()
    • getHttpCode

      public int getHttpCode()
    • getFailure

      public RestFailure getFailure()
    • isCausedByRemote

      public boolean isCausedByRemote()
    • setResponseContext

      public void setResponseContext(javax.ws.rs.client.ClientResponseContext responseContext)
    • getResponseContext

      public javax.ws.rs.client.ClientResponseContext getResponseContext()