inngest
Version:
Official SDK for Inngest.com. Inngest is the reliability layer for modern applications. Inngest combines durable execution, events, and queues into a zero-infra platform with built-in observability.
28 lines (26 loc) • 683 B
JavaScript
//#region src/components/NonRetriableError.ts
/**
* An error that, when thrown, indicates to Inngest that the function should
* cease all execution and not retry.
*
* A `message` must be provided, and an optional `cause` can be provided to
* provide more context to the error.
*
* @public
*/
var NonRetriableError = class extends Error {
/**
* The underlying cause of the error, if any.
*
* This will be serialized and sent to Inngest.
*/
cause;
constructor(message, options) {
super(message);
this.cause = options?.cause;
this.name = "NonRetriableError";
}
};
//#endregion
exports.NonRetriableError = NonRetriableError;
//# sourceMappingURL=NonRetriableError.cjs.map