lotus-sdk
Version:
Central repository for several classes of tools for integrating with, and building for, the Lotusia ecosystem
28 lines • 1.11 kB
TypeScript
interface ErrorDefinition {
name: string;
message: string | ((...args: unknown[]) => string);
errors?: ErrorDefinition[];
}
export declare class BitcoreError extends Error {
constructor(message?: string);
static extend(spec: ErrorDefinition): Function;
static NotImplemented: new (message?: string) => BitcoreError;
static Script: {
InvalidBuffer: new (buffer: string) => BitcoreError;
UnrecognizedAddress: new (address: unknown) => BitcoreError;
CantDeriveAddress: new (script: string) => BitcoreError;
InvalidScriptString: new (script: string) => BitcoreError;
};
static Precondition: {
InvalidState: new (message: string) => BitcoreError;
InvalidArgument: new (argumentName: string, message?: string, docsPath?: string) => BitcoreError;
InvalidArgumentType: new (argument: unknown, type: string | Function, argumentName?: string) => BitcoreError;
};
static Transaction: {
Input: {
MissingScript: new () => BitcoreError;
};
};
}
export {};
//# sourceMappingURL=errors.d.ts.map