UNPKG

@bigmi/core

Version:

TypeScript library for Bitcoin apps.

39 lines (38 loc) 1.1 kB
import { BaseError } from './base.js'; export type UrlRequiredErrorType = UrlRequiredError & { name: 'UrlRequiredError'; }; export declare class UrlRequiredError extends BaseError { constructor(); } export type TransportMethodNotSupportedErrorType = TransportMethodNotSupportedError & { name: 'TransportMethodNotSupportedError'; }; export declare class TransportMethodNotSupportedError extends BaseError { constructor({ method }: { method: string; }); } export type AllTransportsFailedErrorType = AllTransportsFailedError & { name: 'AllTransportsFailedError'; }; export declare class AllTransportsFailedError extends BaseError { constructor({ method, params, errors, totalAttempts, }: { method: string; params: unknown; errors: Array<{ transport: string; error: Error; attempt: number; }>; totalAttempts: number; }); method: string; params: unknown; errors: Array<{ transport: string; error: Error; attempt: number; }>; totalAttempts: number; }