INNER CODE UNIT · JavaScript
TouchIDError
naoufal/react-native-touch-id · errors.js:3
class TouchIDError extends Error {
constructor(name, details, code) {
super();
this.name = name || 'TouchIDError';
this.message = details.message || 'Touch ID Error';
this.details = details || {};
this.code = code;
}
}
class TouchIDUnifiedError extends Error {
constructor(error) {
super();
this.name = 'TouchIDError';
this.message = error.message;
this.code = error.code;
}
}