@kiryano/etherealotp
Version:
A library for two-factor authentication using Twilio and Speakeasy.
15 lines (14 loc) • 511 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TwilioError = void 0;
/**
* Represents errors related to Twilio operations.
*/
class TwilioError extends Error {
constructor(message) {
super(`TwilioError: ${message}`); // Prefix error messages for clarity
this.name = 'TwilioError'; // Set the error name to the class name
Object.setPrototypeOf(this, TwilioError.prototype); // Restore prototype chain
}
}
exports.TwilioError = TwilioError;