ksmf
Version:
Modular Microframework for create minimalistic CLI/Web application or REST API
41 lines (40 loc) • 1.05 kB
TypeScript
export = ErrorHandler;
/**
* @author Antonio Membrides Espinosa
* @email tonykssa@gmail.com
* @date 07/03/2020
* @copyright Copyright (c) 2020-2030
* @license GPL
* @version 1.0
**/
declare class ErrorHandler {
constructor(cfg: any);
/**
* @type {Object|null}
*/
helper: any | null;
/**
* @type {Console|null}
*/
logger: Console | null;
/**
* @type {Object|null}
*/
app: any | null;
configure(cfg: any): void;
/**
* @description Set options on Initialize Configuration Event
* @param {Object} cfg
* @param {Object} cfg
*/
onInitConfig(cfg: any, app: any): Promise<void>;
init(): void;
onUncaughtException(error: any, origin: any): void;
onUncaughtExceptionMonitor(error: any, origin: any): void;
onUnhandledRejection(reason: any, promise: any): void;
onWarning(warning: any): void;
onSigInt(): void;
onSigTerm(signal: any): void;
onSigExit(code: any): void;
onSigBeforeExit(code: any): void;
}