Class MagicAuthError

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.glideapi.exceptions.MagicAuthError
All Implemented Interfaces:
Serializable

public class MagicAuthError extends Exception
MagicAuth error matching the error structure from Go/Node SDKs
See Also:
  • Constructor Details

    • MagicAuthError

      public MagicAuthError(String code, int status, String message)
      Create error with code, status, and message
    • MagicAuthError

      public MagicAuthError(Map<String,Object> errorResponse)
      Create error from server response
  • Method Details

    • getCode

      public String getCode()
    • getStatus

      public int getStatus()
    • getRequestId

      public String getRequestId()
    • setRequestId

      public void setRequestId(String requestId)
    • getDetails

      public Map<String,Object> getDetails()
    • setDetails

      public void setDetails(Map<String,Object> details)
    • isRetryable

      public boolean isRetryable()
      Check if error is retryable
    • toString

      public String toString()
      Overrides:
      toString in class Throwable