bitpay-sdk
Version:
Complete version of the NodeJS library for the new cryptographically secure BitPay API
15 lines (14 loc) • 944 B
TypeScript
export declare class BitPayExceptionProvider {
static readonly GENERIC_API_UNMAPPED_ERROR_CODE: string;
static throwGenericExceptionWithMessage(errorMessage: string | null): void;
static throwApiExceptionWithMessage(errorMessage: string | null, code: string | null): void;
static throwDeserializeResourceException(resource: string | null, errorMessage: string | null): void;
static throwDeserializeException(errorMessage: string | null): void;
static throwEncodeException(errorMessage: string | null): void;
static throwSerializeResourceException(resource: string, errorMessage: string | null): void;
static throwSerializeParamsException(errorMessage: string | null): void;
static throwValidationException(errorMessage: string | null): void;
static throwMissingParameterException(): void;
static throwInvalidCurrencyException(currencyCode: string | null): void;
private static logErrorMessage;
}