define(["require","exports","tslib","../../deps/bluebird_fork","../../Errors","../../Validation"],function(e,r,t,i,o,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),i=t.__importDefault(i);c.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 i.default.reject(new o.GenericActivityError(r,t));e=e.error;return"object"==typeof e&&null!==e?i.default.reject(e):i.default.reject(new o.UnspecifiedError)},c.action="gcx:wf:core::Throw",c.suite="gcx:wf:builtin",t=c;function c(){}r.Throw=t});