bluechip-utils
Version:
Utitity function package for javsacript and Typescript
65 lines (64 loc) • 2.56 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 });
exports.AuthorizationError = exports.AuthenticationError = exports.ApplicationProcessError = exports.InvalidDataTypeError = void 0;
var InvalidDataTypeError = /** @class */ (function (_super) {
__extends(InvalidDataTypeError, _super);
function InvalidDataTypeError(msg) {
var _this = _super.call(this, msg) || this;
if (Error.captureStackTrace) {
Error.captureStackTrace(_this, InvalidDataTypeError);
}
return _this;
}
return InvalidDataTypeError;
}(Error));
exports.InvalidDataTypeError = InvalidDataTypeError;
var ApplicationProcessError = /** @class */ (function (_super) {
__extends(ApplicationProcessError, _super);
function ApplicationProcessError(msg) {
var _this = _super.call(this, msg) || this;
if (Error.captureStackTrace) {
Error.captureStackTrace(_this, ApplicationProcessError);
}
return _this;
}
return ApplicationProcessError;
}(Error));
exports.ApplicationProcessError = ApplicationProcessError;
var AuthenticationError = /** @class */ (function (_super) {
__extends(AuthenticationError, _super);
function AuthenticationError(msg) {
var _this = _super.call(this, msg) || this;
if (Error.captureStackTrace) {
Error.captureStackTrace(_this, AuthenticationError);
}
return _this;
}
return AuthenticationError;
}(Error));
exports.AuthenticationError = AuthenticationError;
var AuthorizationError = /** @class */ (function (_super) {
__extends(AuthorizationError, _super);
function AuthorizationError(msg) {
var _this = _super.call(this, msg) || this;
if (Error.captureStackTrace) {
Error.captureStackTrace(_this, AuthorizationError);
}
return _this;
}
return AuthorizationError;
}(Error));
exports.AuthorizationError = AuthorizationError;