Skip to content

Class: CorruptSpendJournalError

Defined in: rine-core/dist/src/x402/spend-journal.d.ts:7

The spend journal exists but cannot be read as one, so today's spend is unknown. Reading it as empty would reset the daily cap, so every payment is refused until the file is repaired. detail replaces the default cause.

Extends

  • Error

Constructors

Constructor

new CorruptSpendJournalError(path, detail?): CorruptSpendJournalError;

Defined in: rine-core/dist/src/x402/spend-journal.d.ts:9

Parameters

Parameter Type
path string
detail? string

Returns

CorruptSpendJournalError

Overrides

Error.constructor

Properties

Property Modifier Type Defined in
path readonly string rine-core/dist/src/x402/spend-journal.d.ts:8