src/logger.js
function UncaughtExceptionHandler(error) {
    // Call module.exports.crit here so that we can intercept the call in the tests
    module.exports.crit(`Unhandled exception: ${error.message}`);
    module.exports.crit(error.stack.toString());
    process.exit(1);
}
function UncaughtExceptionHandler(error) {
    // Call module.exports.crit here so that we can intercept the call in the tests
    module.exports.crit(`Unhandled exception: ${error.message}`);
    module.exports.crit(error.stack.toString());
    process.exit(1);
}
function UncaughtExceptionHandler ( error ) { // Call module.exports.crit here so that we can intercept the call in the tests module . exports . crit ( ` ${ error . message } ` ) ; module . exports . crit ( error . stack . toString ( ) ) ; process . exit ( 1 ) ; }
Handler for the uncaught exception event inside nodejs. It will print out a critical error message and will then
exit the application.
Handler for the uncaught exception event inside nodejs . It will print out a critical error message and will then exit the application .