Skip to content
Français

LoopTaskExhausted

import { LoopTaskExhausted } from "@elie-laloum/outpost";

Error recorded when the last permitted round fails verification. Inspect key, maxRounds and feedback through WorkflowResult.errors; resuming the same checkpoint does not reset the limit.

Complete example and detailed rules.

  • keyRequired
    string
    Key of the loop task whose verification never succeeded.
  • maxRoundsRequired
    number
    Configured logical round limit reached by this loop.
  • feedbackRequired
    string
    Text returned by the last rejected verification.
  • nameRequired
    string
    Error class name used to distinguish this failure from other JavaScript errors.
  • messageRequired
    string
    Human-readable explanation of the failure.
  • stackOptional
    string | undefined
    JavaScript stack trace for the error, when available.
  • causeOptional
    unknown
    Underlying failure this error wraps; quotaFault() and unavailableFault() follow this chain.
export declare class LoopTaskExhausted extends Error {
  readonly key: string;
  readonly maxRounds: number;
  readonly feedback: string;
  constructor(key: string, maxRounds: number, feedback: string);
}