UNPKG

poe-js-sdk

Version:

TypeScript SDK for the Path of Exile API

27 lines 861 B
/** * Error thrown for structured API errors from the PoE API. * Mirrors `{ error: { code, message } }` payloads and includes HTTP metadata. */ export declare class PoEApiError extends Error { code?: number | undefined; status: number; url?: string | undefined; details?: unknown; headers?: Record<string, string> | undefined; /** * @param message Error message * @param opts.code Optional PoE error code * @param opts.status HTTP status code * @param opts.url Request URL if available * @param opts.details Raw error payload * @param opts.headers Response headers */ constructor(message: string, options: { code?: number; status: number; url?: string; details?: unknown; headers?: Record<string, string>; }); } //# sourceMappingURL=api-error.d.ts.map