Class ApiException

java.lang.Object
java.lang.Throwable
java.lang.Exception
dev.restate.admin.client.ApiException
All Implemented Interfaces:
Serializable

public class ApiException extends Exception
See Also:
  • Constructor Details

    • ApiException

      public ApiException()
    • ApiException

      public ApiException(Throwable throwable)
    • ApiException

      public ApiException(String message)
    • ApiException

      public ApiException(String message, Throwable throwable, int code, HttpHeaders responseHeaders, String responseBody)
    • ApiException

      public ApiException(String message, int code, HttpHeaders responseHeaders, String responseBody)
    • ApiException

      public ApiException(String message, Throwable throwable, int code, HttpHeaders responseHeaders)
    • ApiException

      public ApiException(int code, HttpHeaders responseHeaders, String responseBody)
    • ApiException

      public ApiException(int code, String message)
    • ApiException

      public ApiException(int code, String message, HttpHeaders responseHeaders, String responseBody)
  • Method Details

    • getCode

      public int getCode()
      Get the HTTP status code.
      Returns:
      HTTP status code
    • getResponseHeaders

      public HttpHeaders getResponseHeaders()
      Get the HTTP response headers.
      Returns:
      Headers as an HttpHeaders object
    • getResponseBody

      public String getResponseBody()
      Get the HTTP response body.
      Returns:
      Response body in the form of string