itowns
Version:
A JS/WebGL framework for 3D geospatial data visualization
38 lines (31 loc) • 1.13 kB
JavaScript
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
/**
* Custom error thrown when cancelling commands. Allows the caller to act differently if needed.
* @class
* @param {Command} command
*/
var CancelledCommandException =
/*#__PURE__*/
function () {
function CancelledCommandException(command) {
(0, _classCallCheck2["default"])(this, CancelledCommandException);
this.command = command;
this.isCancelledCommandException = true;
}
(0, _createClass2["default"])(CancelledCommandException, [{
key: "toString",
value: function toString() {
return "Cancelled command ".concat(this.command.requester.id, "/").concat(this.command.layer.id);
}
}]);
return CancelledCommandException;
}();
var _default = CancelledCommandException;
exports["default"] = _default;
;