{"version":3,"file":"NonRetriableError.cjs","names":[],"sources":["../../src/components/NonRetriableError.ts"],"sourcesContent":["/**\n * An error that, when thrown, indicates to Inngest that the function should\n * cease all execution and not retry.\n *\n * A `message` must be provided, and an optional `cause` can be provided to\n * provide more context to the error.\n *\n * @public\n */\nexport class NonRetriableError extends Error {\n  /**\n   * The underlying cause of the error, if any.\n   *\n   * This will be serialized and sent to Inngest.\n   */\n  public override readonly cause?: unknown;\n\n  constructor(\n    message: string,\n    options?: {\n      /**\n       * The underlying cause of the error, if any.\n       *\n       * This will be serialized and sent to Inngest.\n       */\n      cause?: unknown;\n    },\n  ) {\n    super(message);\n\n    this.cause = options?.cause;\n\n    this.name = \"NonRetriableError\";\n  }\n}\n"],"mappings":";;;;;;;;;;;AASA,IAAa,oBAAb,cAAuC,MAAM;;;;;;CAM3C,AAAyB;CAEzB,YACE,SACA,SAQA;AACA,QAAM,QAAQ;AAEd,OAAK,QAAQ,SAAS;AAEtB,OAAK,OAAO"}