BiometricVaultException class sealed

The common base type for every failure this plugin reports.

The hierarchy is sealed, so a switch over an instance is exhaustive:

try {
  await file.read();
} on BiometricVaultException catch (e) {
  switch (e) {
    case AuthException(:final code):
      // The user could not or did not authenticate; inspect [code].
    case StorageInvalidatedException():
      // The stored value is gone for good; re-provision it.
    case BiometricVaultPluginException():
      // Unexpected platform failure; report it.
  }
}
Implemented types
Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
A human-readable description of the failure, suitable for logs.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited