Skip to main content
Version: 4.3

VaultError

An error that can be thrown by the plugin.

Usage


_14
try {
_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

message