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.
29 lines • 780 B
TypeScript
//#region src/components/NonRetriableError.d.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
*/
declare class NonRetriableError extends Error {
/**
* The underlying cause of the error, if any.
*
* This will be serialized and sent to Inngest.
*/
readonly cause?: unknown;
constructor(message: string, options?: {
/**
* The underlying cause of the error, if any.
*
* This will be serialized and sent to Inngest.
*/
cause?: unknown;
});
}
//#endregion
export { NonRetriableError };
//# sourceMappingURL=NonRetriableError.d.ts.map