UNPKG

@paritydeals/node-sdk

Version:

Node.js SDK for interacting with the ParityDeals API.

25 lines 1.23 kB
/** * Base class for all API-related errors in the ParityDeals SDK. */ export declare class ApiError extends Error { readonly statusCode?: number; readonly details?: any; readonly cause?: Error; readonly requestUrl?: string; readonly requestMethod?: string; constructor(message: string, statusCode?: number, details?: any, cause?: Error, requestUrl?: string, requestMethod?: string); toString(): string; } export declare class AuthenticationError extends ApiError { constructor(message?: string, statusCode?: number, details?: any, cause?: Error, requestUrl?: string, requestMethod?: string); } export declare class InvalidRequestError extends ApiError { constructor(message?: string, statusCode?: number, details?: any, cause?: Error, requestUrl?: string, requestMethod?: string); } export declare class ServerError extends ApiError { constructor(message?: string, statusCode?: number, details?: any, cause?: Error, requestUrl?: string, requestMethod?: string); } export declare class NotFoundError extends ApiError { constructor(message?: string, statusCode?: number, details?: any, cause?: Error, requestUrl?: string, requestMethod?: string); } //# sourceMappingURL=exceptions.d.ts.map