@typecad/jlcpcb-parts
Version:
Intelligent fuzzy search for JLCPCB electrical components with CLI interface
34 lines • 929 B
TypeScript
import { Logger } from './Logger.js';
/**
* Class for handling global unhandled exceptions and rejections
*/
export declare class GlobalErrorHandler {
private static isInitialized;
private static logger;
/**
* Initializes the global error handler
* @param logger - Logger instance to use
*/
static initialize(logger: Logger): void;
/**
* Handles an uncaught exception
* @param error - The uncaught exception
*/
private static handleUncaughtException;
/**
* Handles an unhandled rejection
* @param reason - The reason for the rejection
*/
private static handleUnhandledRejection;
/**
* Handles a warning
* @param warning - The warning
*/
private static handleWarning;
/**
* Handles process exit
* @param code - The exit code
*/
private static handleExit;
}
//# sourceMappingURL=GlobalErrorHandler.d.ts.map