dexpaprika-sdk
Version:
JavaScript SDK for the DexPaprika API
35 lines (34 loc) • 897 B
TypeScript
/**
* Custom error classes for DexPaprika SDK
*/
/**
* Base error class for all DexPaprika SDK errors
*/
export declare class DexPaprikaError extends Error {
constructor(message: string);
}
/**
* Error thrown when a network is not found or invalid
*/
export declare class NetworkNotFoundError extends DexPaprikaError {
constructor(networkId: string);
}
/**
* Error thrown when a pool is not found
*/
export declare class PoolNotFoundError extends DexPaprikaError {
constructor(poolAddress: string);
}
/**
* General API error with status code
*/
export declare class ApiError extends DexPaprikaError {
statusCode: number;
constructor(message: string, statusCode: number);
}
/**
* Error thrown when trying to use a deprecated endpoint
*/
export declare class DeprecatedEndpointError extends DexPaprikaError {
constructor(endpoint: string, alternative: string);
}