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