UNPKG

stellar-plus

Version:

beta version of stellar-plus, an all-in-one sdk for the Stellar blockchain

20 lines (19 loc) 620 B
import { TransactionDiagnostic } from './helpers/horizon'; import { ErrorCodes, Meta, StellarPlusErrorObject } from './types'; export declare class StellarPlusError extends Error { code: ErrorCodes; source: string; details?: string; meta?: Meta; diagnostic?: TransactionDiagnostic; constructor(e: StellarPlusErrorObject); static unexpectedError(args?: { code?: ErrorCodes; source?: string; message?: string; details?: string; meta?: Meta; error?: Error; }): StellarPlusError; static fromUnkownError(error: unknown): StellarPlusError; }