durable-functions
Version:
Durable Functions library for Node.js Azure Functions
22 lines • 879 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.ResponseMessage = void 0;
const Utils_1 = require("../util/Utils");
class ResponseMessage {
constructor(event) {
if (typeof event === "object" && event !== null) {
if (Utils_1.Utils.hasStringProperty(event, "result")) {
this.result = event.result;
}
if (Utils_1.Utils.hasStringProperty(event, "exceptionType")) {
this.exceptionType = event.exceptionType;
}
}
else {
throw Error("Attempted to construct ResponseMessage event from incompatible History event. " +
"This is probably a bug in History-replay. Please file a bug report.");
}
}
}
exports.ResponseMessage = ResponseMessage;
//# sourceMappingURL=ResponseMessage.js.map
;