@aurigma/design-atoms-model
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
104 lines • 4.28 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 __());
};
})();
var Exception = /** @class */ (function (_super) {
__extends(Exception, _super);
function Exception(message) {
var _this = _super.call(this, message) || this;
_this.name = "CustomersCanvasException";
Object["setPrototypeOf"](_this, Exception.prototype); //https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
return _this;
}
Exception.prototype.toString = function () {
return this.name + ": " + this.message;
};
Exception.prototype.toJSON = function () {
return {
name: this.name,
innerException: this.innerException,
message: this.message
};
};
return Exception;
}(Error));
export { Exception };
var NotImplementedException = /** @class */ (function (_super) {
__extends(NotImplementedException, _super);
function NotImplementedException(message) {
var _this = _super.call(this, message) || this;
_this.name = "NotImplementedException";
Object["setPrototypeOf"](_this, NotImplementedException.prototype);
return _this;
}
return NotImplementedException;
}(Exception));
export { NotImplementedException };
var ArgumentException = /** @class */ (function (_super) {
__extends(ArgumentException, _super);
function ArgumentException(message) {
var _this = _super.call(this, message) || this;
_this.name = "ArgumentException";
Object["setPrototypeOf"](_this, ArgumentException.prototype);
return _this;
}
return ArgumentException;
}(Exception));
export { ArgumentException };
var ArgumentNullException = /** @class */ (function (_super) {
__extends(ArgumentNullException, _super);
function ArgumentNullException(message) {
var _this = _super.call(this, message) || this;
_this.name = "ArgumentNullException";
Object["setPrototypeOf"](_this, ArgumentNullException.prototype);
return _this;
}
return ArgumentNullException;
}(ArgumentException));
export { ArgumentNullException };
var OutOfRangeException = /** @class */ (function (_super) {
__extends(OutOfRangeException, _super);
function OutOfRangeException(message) {
var _this = _super.call(this, message) || this;
_this.name = "OutOfRangeException";
Object["setPrototypeOf"](_this, OutOfRangeException.prototype);
return _this;
}
return OutOfRangeException;
}(Exception));
export { OutOfRangeException };
var InvalidOperationException = /** @class */ (function (_super) {
__extends(InvalidOperationException, _super);
function InvalidOperationException(message) {
var _this = _super.call(this, message) || this;
_this.name = "InvalidOperationException";
Object["setPrototypeOf"](_this, InvalidOperationException.prototype);
return _this;
}
return InvalidOperationException;
}(Exception));
export { InvalidOperationException };
/**
* This exception is thrown when unexpected data is encountered.
*/
var UnexpectedDataException = /** @class */ (function (_super) {
__extends(UnexpectedDataException, _super);
function UnexpectedDataException(message) {
var _this = _super.call(this, message) || this;
_this.name = "UnexpectedDataException";
Object["setPrototypeOf"](_this, UnexpectedDataException.prototype);
return _this;
}
return UnexpectedDataException;
}(Exception));
export { UnexpectedDataException };
//# sourceMappingURL=Exception.js.map