Class ApiException

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ApiException​(java.lang.String message)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ApiException from​(java.lang.String status, java.lang.String errorMessage)
      Construct the appropriate ApiException from the response.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ApiException

        protected ApiException​(java.lang.String message)
    • Method Detail

      • from

        public static ApiException from​(java.lang.String status,
                                        java.lang.String errorMessage)
        Construct the appropriate ApiException from the response. If the response was successful, this method will return null.
        Parameters:
        status - The status field returned from the API
        errorMessage - The error message returned from the API
        Returns:
        The appropriate ApiException based on the status or null if no error occurred.