Class ApiException

All Implemented Interfaces:
DuctapeError, Serializable

public class ApiException extends RuntimeException implements DuctapeError
See Also:
  • Constructor Details

    • ApiException

      public ApiException(String message, int statusCode, String body)
    • ApiException

      public ApiException(String message, int statusCode, String body, Throwable cause)
  • Method Details

    • getStatusCode

      public int getStatusCode()
    • getBody

      public String getBody()
    • code

      public String code()
      Description copied from interface: DuctapeError
      Stable machine-readable code, suitable for logs and API envelopes.
      Specified by:
      code in interface DuctapeError