Version: 5.0
VaultError
An error that can be thrown by the plugin.
Usage
try {
vault.unlock();
} catch(e) {
switch (e.code) {
case VaultErrorCodes.AuthFailed:
alert('You failed to authenticate!');
break;
case VaultErrorCodes.UserCanceledInteraction:
alert('You cancelled the face id prompt!');
break;
default:
throw e;
}
}
Properties
code
- Type: VaultErrorCodes
The error code enum representing the error.
message
- Type:
string
A text description of the error that occurred.