mirror of
https://github.com/hanzoai/kv-errors.git
synced 2026-10-30 18:30:35 +00:00
@hanzo/kv-errors (published to npm, no repo). No history, no remote, not on GitHub. Co-authored-by: Hanzo Dev <[email protected]>
19 lines
754 B
TypeScript
19 lines
754 B
TypeScript
/** Root of every error this client raises. Catch it to catch them all. */
|
|
export declare class KVError extends Error {
|
|
get name(): string;
|
|
}
|
|
/** The server answered, and its answer was an error reply. */
|
|
export declare class ReplyError extends KVError {
|
|
constructor(message?: string);
|
|
}
|
|
/** A frame arrived that does not decode. `buffer` and `offset` locate it. */
|
|
export declare class ParserError extends KVError {
|
|
constructor(message: string, buffer: Buffer, offset: number);
|
|
buffer: Buffer;
|
|
offset: number;
|
|
}
|
|
/** The command was abandoned before it reached the wire. */
|
|
export declare class AbortError extends KVError {}
|
|
/** A command in flight was cut off by a connection loss. */
|
|
export declare class InterruptError extends AbortError {}
|