Package com.fingerprint.android
Class FingerprintException
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class FingerprintException extends Exception
Exception thrown by coroutine-based API methods when an error occurs.
This exception preserves the full Error object with event ID and type information, allowing callers to handle different error types programmatically.
-
-
Constructor Summary
Constructors Constructor Description FingerprintException(Error error)
-
Method Summary
Modifier and Type Method Description final StringgetEventId()final ErrorgetError()The original error containing event ID, description, and type information final <T extends Error> BooleanisErrorType()Checks if the error is of a specific type. StringtoString()-
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
FingerprintException
FingerprintException(Error error)
-
-
Method Detail
-
getEventId
final String getEventId()
-
getError
final Error getError()
The original error containing event ID, description, and type information
-
isErrorType
final <T extends Error> Boolean isErrorType()
Checks if the error is of a specific type.
- Returns:
true if the error is an instance of type T
-
-
-
-