!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","tslib","../../deps/bluebird_fork","../../Errors","../../Validation"],e)}(function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("tslib").__importDefault(e("../../deps/bluebird_fork")),i=e("../../Errors"),n=e("../../Validation"),e=(t.prototype.execute=function(e){var r=n.validation.string("code",e.code,void 0),t=n.validation.string("message",e.message,void 0);if(void 0!==r||void 0!==t)return o.default.reject(new i.GenericActivityError(r,t));e=e.error;return"object"==typeof e&&null!==e?o.default.reject(e):o.default.reject(new i.UnspecifiedError)},t.action="gcx:wf:core::Throw",t.suite="gcx:wf:builtin",t);function t(){}r.Throw=e});