Class HankoApiException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HankoAuthenticationException, HankoNotFoundException

public class HankoApiException extends HankoException
Exception occurring when the Hanko API does not respond with a status code in the range 2xx.
See Also:
Serialized Form
  • Constructor Details

    • HankoApiException

      public HankoApiException(String message)
      Construct a new HankoApiException with the specified detail message.
      Parameters:
      message - the detail message
    • HankoApiException

      public HankoApiException(String message, Integer status, String requestPath, String content)
      Construct a new HankoApiException with the specified detail message, the Hanko API response status, the original request path and the Hanko API response content.
      Parameters:
      message - the detail message
      status - the Hanko API HTTP response status
      requestPath - the original request path
      content - the Hanko API response content
  • Method Details

    • getContent

      public String getContent()
      Get the Hanko API response content.
      Returns:
      the Hanko API response content as a String
    • getStatus

      public Integer getStatus()
      Get the Hanko API HTTP response status.
      Returns:
      the Hanko API HTTP response status as an Integer
    • getRequestPath

      public String getRequestPath()
      Get the original request path.
      Returns:
      the original request path as a String