INNER CODE UNIT · JavaScript
createError
naoufal/react-native-touch-id · TouchID.ios.js:51
function createError(config, error) {
const { unifiedErrors } = config || {};
if (unifiedErrors) {
return new TouchIDUnifiedError(getError(error));
}
const details = iOSErrors[error];
details.name = error;
return new TouchIDError(error, details);
}