Class ApiException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.persequor.saga.modules.izkm.exceptions.ApiException
All Implemented Interfaces:
Serializable

public class ApiException extends Exception
See Also:
  • Constructor Details

    • ApiException

      public ApiException()
    • ApiException

      public ApiException(int code, String message)
    • ApiException

      public ApiException(int code, String message, Map<String,List<String>> responseHeaders, String responseBody)
    • ApiException

      public ApiException(IzkmHttpResponse response)
  • Method Details

    • getCode

      public int getCode()
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • toString

      public String toString()
      Overrides:
      toString in class Throwable
    • getResponseHeaders

      public Map<String,List<String>> getResponseHeaders()
      Get the HTTP response headers.
    • getResponseBody

      public String getResponseBody()
      Get the HTTP response body.