import { LedgerCustom } from './types/ledger-custom'; import { LedgerErrorReason } from './types/ledger-error-reason'; /** * Base Ledger Error class */ export declare class LedgerError extends Error { reason: LedgerErrorReason; detail: string; custom?: LedgerCustom; /** * * @param reason error reason * @param detail error detail - message * @param custom custom data record to attach * additional info about the error */ constructor(reason: LedgerErrorReason, detail: string, custom?: LedgerCustom); }