opstack-kit-chains
Version:
Support your OP-Stack network with 'opstack-kit'
74 lines • 1.92 kB
TypeScript
import { BaseError } from './base.js';
export type HttpRequestErrorType = HttpRequestError & {
name: 'HttpRequestError';
};
export declare class HttpRequestError extends BaseError {
name: string;
body?: {
[x: string]: unknown;
} | {
[y: string]: unknown;
}[] | undefined;
headers?: Headers | undefined;
status?: number | undefined;
url: string;
constructor({ body, cause, details, headers, status, url, }: {
body?: {
[x: string]: unknown;
} | {
[y: string]: unknown;
}[] | undefined;
cause?: Error | undefined;
details?: string | undefined;
headers?: Headers | undefined;
status?: number | undefined;
url: string;
});
}
export type WebSocketRequestErrorType = WebSocketRequestError & {
name: 'WebSocketRequestError';
};
export declare class WebSocketRequestError extends BaseError {
name: string;
constructor({ body, details, url, }: {
body: {
[key: string]: unknown;
};
details: string;
url: string;
});
}
export type RpcRequestErrorType = RpcRequestError & {
name: 'RpcRequestError';
};
export declare class RpcRequestError extends BaseError {
name: string;
code: number;
constructor({ body, error, url, }: {
body: {
[x: string]: unknown;
} | {
[y: string]: unknown;
}[];
error: {
code: number;
message: string;
};
url: string;
});
}
export type TimeoutErrorType = TimeoutError & {
name: 'TimeoutError';
};
export declare class TimeoutError extends BaseError {
name: string;
constructor({ body, url, }: {
body: {
[x: string]: unknown;
} | {
[y: string]: unknown;
}[];
url: string;
});
}
//# sourceMappingURL=request.d.ts.map