public class GuardianException
extends java.lang.RuntimeException
| Constructor and Description |
|---|
GuardianException(java.util.Map<java.lang.String,java.lang.Object> errorResponse) |
GuardianException(java.lang.String detailMessage,
java.lang.Throwable throwable) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getErrorCode()
Returns the `errorCode` value, if available.
|
boolean |
isAlreadyEnrolled()
Whether the error is caused by the user already having a confirmed enrollment
|
boolean |
isEnrollmentNotFound()
Whether the error is caused by the enrollment being invalid or not found on the server
|
boolean |
isInvalidOTP()
Whether the error is caused by the use of an invalid OTP code
|
boolean |
isInvalidToken()
Whether the error is caused by the use of an invalid token
|
boolean |
isLoginTransactionNotFound()
Whether the error is caused by the login transaction being invalid, expired or not found
|
boolean |
isTransactionNotFound()
Whether the error is caused by the transaction being invalid, expired or not found (e.g.
|
java.lang.String |
toString() |
public GuardianException(java.lang.String detailMessage,
java.lang.Throwable throwable)
public GuardianException(java.util.Map<java.lang.String,java.lang.Object> errorResponse)
public java.lang.String getErrorCode()
public boolean isInvalidOTP()
public boolean isInvalidToken()
public boolean isEnrollmentNotFound()
public boolean isLoginTransactionNotFound()
public boolean isTransactionNotFound()
public boolean isAlreadyEnrolled()
public java.lang.String toString()
toString in class java.lang.Throwable