UNPKG

@twilio/voice-react-native-sdk

Version:
32 lines (23 loc) 991 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InvalidArgumentError = void 0; var _TwilioError = require("./TwilioError"); function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** * Error describing that an SDK function is invoked with an invalid argument. * * @public */ class InvalidArgumentError extends _TwilioError.TwilioError { constructor(message) { super(message); _defineProperty(this, "description", 'Invalid argument error.'); _defineProperty(this, "explanation", 'The SDK has encountered a situation where invalid arguments were passed.'); Object.setPrototypeOf(this, InvalidArgumentError.prototype); this.name = InvalidArgumentError.name; } } exports.InvalidArgumentError = InvalidArgumentError; //# sourceMappingURL=InvalidArgumentError.js.map