@twilio/rtc-diagnostics
Version:
Various diagnostics functions to help analyze connections to Twilio
33 lines • 1.33 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var constants_1 = require("../constants");
var DiagnosticError_1 = require("./DiagnosticError");
/**
* @internalapi
* Error for when a browser-provided feature isn't available, such as
* `getUserMedia`.
*/
var UnsupportedError = /** @class */ (function (_super) {
__extends(UnsupportedError, _super);
function UnsupportedError(message) {
var _this = _super.call(this, undefined, message) || this;
_this.name = constants_1.ErrorName.UnsupportedError;
return _this;
}
return UnsupportedError;
}(DiagnosticError_1.DiagnosticError));
exports.UnsupportedError = UnsupportedError;
//# sourceMappingURL=UnsupportedError.js.map