static _on_exception(compiler, error, compiled, handler) {
        let error_string = error.stack;
        let relative_error = compiler._relativize_error(
            error_string,
            compiled,
            true
        );

        if (typeof handler == 'function') {
            handler(relative_error);
        } else {
            console.error(relative_error);
            process.exit(1);
        }
    }
/**
     * INTERNAL METHOD!
     * Handles exception from global handler when relative error logging is enabled.
     *
     * @param {Compiler} compiler
     * @param {Error} error
     * @param {String} compiled
     * @param {Function} handler
     */
INTERNAL METHOD.
Handles exception from global handler when relative error logging is enabled.


INTERNAL METHOD . Handles exception from global handler when relative error logging is enabled .
static _on_exception(compiler, error, compiled, handler) {
        let error_string = error.stack;
        let relative_error = compiler._relativize_error(
            error_string,
            compiled,
            true
        );
        if (typeof handler == 'function') {
            handler(relative_error);
        } else {
            console.error(relative_error);
            process.exit(1);
        }
    }
static _on_exception ( compiler , error , compiled , handler ) { let error_string = error . stack ; let relative_error = compiler . _relativize_error ( error_string , compiled , true ) ; if ( typeof handler == 'function' ) { handler ( relative_error ) ; } else { console . error ( relative_error ) ; process . exit ( 1 ) ; } }
INTERNAL METHOD!
INTERNAL METHOD!