UNPKG

@smash-sdk/core

Version:

Smash Sdk Core

54 lines (53 loc) 1.45 kB
/// <reference types="node" /> export interface ResponseError { name: string; code?: number; error?: string; requestId?: string; details?: { name?: string; type?: string; reason?: string; expected?: string; given?: number; min?: number; max?: number; primary?: string; secondary?: string; }; } export declare class SDKError extends Error { code?: number; error?: string; requestId?: string; details?: { name?: string; type?: string; reason?: string; expected?: string; given?: number; min?: number; max?: number; primary?: string; secondary?: string; }; constructor(error: ResponseError | Error | string); static stack(): NodeJS.CallSite[] | string | undefined; static stringifiedStack(): string | undefined; } export declare class UnknownError extends SDKError { } export declare class NetworkError extends SDKError { } export declare class TimeoutError extends SDKError { } export declare class ConnectionAbortedError extends SDKError { } export declare class InvalidSdkConfigurationError extends SDKError { } export declare class InvalidRegionOrHostError extends InvalidSdkConfigurationError { } export declare class InvalidRegionError extends InvalidRegionOrHostError { } export declare class InvalidHostError extends InvalidRegionOrHostError { }