UNPKG

@connectv/core

Version:

agent-based reactive programming library for typescript/javascript

50 lines 2.11 kB
"use strict"; 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 __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); /** * * This error is thrown when a not matching input on a [signature](https://connective.dev/docs/agent#signature) * is accessed. * */ var InputNotInSignature = /** @class */ (function (_super) { __extends(InputNotInSignature, _super); function InputNotInSignature(input, signature) { var _this = _super.call(this, "Input " + input + " not in signature {inputs: " + signature.inputs + "}.\nRead this for more information:\nhttps://connective.dev/docs/agent#signature") || this; _this.input = input; _this.signature = signature; return _this; } return InputNotInSignature; }(Error)); exports.InputNotInSignature = InputNotInSignature; /** * * This error is thrown when a not matching output on a [signature](https://connective.dev/docs/agent#signature) * is accessed. * */ var OutputNotInSignature = /** @class */ (function (_super) { __extends(OutputNotInSignature, _super); function OutputNotInSignature(output, signature) { var _this = _super.call(this, "Output " + output + " not in signature {outputs: " + signature.outputs + "}.\nRead this for more information:\nhttps://connective.dev/docs/agent#signature") || this; _this.output = output; _this.signature = signature; return _this; } return OutputNotInSignature; }(Error)); exports.OutputNotInSignature = OutputNotInSignature; //# sourceMappingURL=signature-mismatch.error.js.map