multibridge
Version:
A multi-database connection framework with centralized configuration
28 lines (27 loc) • 1.12 kB
TypeScript
/**
* Custom error classes for MultiBridge
* Provides consistent error handling throughout the codebase
*/
export declare class MultiBridgeError extends Error {
readonly code: string;
readonly context?: Record<string, any> | undefined;
constructor(message: string, code: string, context?: Record<string, any> | undefined);
}
export declare class TenantContextError extends MultiBridgeError {
constructor(message: string, context?: Record<string, any>);
}
export declare class ConnectionError extends MultiBridgeError {
constructor(message: string, context?: Record<string, any>);
}
export declare class ConfigurationError extends MultiBridgeError {
constructor(message: string, context?: Record<string, any>);
}
export declare class ValidationError extends MultiBridgeError {
constructor(message: string, context?: Record<string, any>);
}
export declare class QueryError extends MultiBridgeError {
constructor(message: string, context?: Record<string, any>);
}
export declare class TimeoutError extends MultiBridgeError {
constructor(message: string, context?: Record<string, any>);
}