UNPKG

@signiant/media-shuttle-sdk-base

Version:

The base parent sdk behind other media shuttle sdks (e.g. media-shuttle-sdk)

34 lines (33 loc) 1.32 kB
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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); /** * The CodedError operates like a normal error object but also includes a `code` property. This code property * is one of the enumerations found in the {@link ErrorCode} enum. */ var CodedError = /** @class */ (function (_super) { __extends(CodedError, _super); /** * @ignore */ function CodedError(_a) { var code = _a.code, message = _a.message; var _this = _super.call(this, message) || this; _this.code = code; return _this; } return CodedError; }(Error)); export default CodedError;