@eventmsg/core
Version:
EventMsgV3 TypeScript library - Core protocol implementation with transport abstraction
44 lines (42 loc) • 1.11 kB
TypeScript
import { EventMsgError } from "./event-msg-error.js";
//#region src/errors/transport-error.d.ts
/**
* Error related to transport layer operations (connection, sending, receiving)
*/
declare class TransportError extends EventMsgError {
constructor(message: string, options?: {
context?: Record<string, unknown>;
solutions?: string[];
cause?: Error;
});
}
/**
* Transport connection failed
*/
declare class ConnectionError extends TransportError {
constructor(message?: string, options?: {
context?: Record<string, unknown>;
cause?: Error;
});
}
/**
* Transport send operation failed
*/
declare class SendError extends TransportError {
constructor(message?: string, options?: {
context?: Record<string, unknown>;
cause?: Error;
});
}
/**
* Transport disconnection error
*/
declare class DisconnectionError extends TransportError {
constructor(message?: string, options?: {
context?: Record<string, unknown>;
cause?: Error;
});
}
//#endregion
export { ConnectionError, DisconnectionError, SendError, TransportError };
//# sourceMappingURL=transport-error.d.ts.map