Class MagicAuthError

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

public class MagicAuthError extends Exception
Exception thrown by MagicAuth service operations
See Also:
  • Constructor Details

    • MagicAuthError

      public MagicAuthError(Map<String,Object> errorResponse)
    • MagicAuthError

      public MagicAuthError(String code, int status, String message)
  • Method Details

    • is

      public boolean is(MagicAuthErrorCode errorCode)
      Check if this error matches a specific error code
    • getCode

      public String getCode()
    • getStatus

      public int getStatus()
    • getRequestId

      public String getRequestId()
    • getTimestamp

      public String getTimestamp()
    • getDetails

      public Object getDetails()
    • toString

      public String toString()
      Overrides:
      toString in class Throwable