public function errorHandler(
        int $errSeverity,
        string $errMsg,
        string $errFile,
        int $errLine
    ) {
        $errType     = $this->obtainErrorType($errSeverity);
        $errorRender = $this->obtainErrorRender();
        
        \BFW\Application::getInstance()
            ->getMonolog()
            ->getLogger()
            ->debug(
                'New error catched.',
                [
                    'type' => $errType,
                    'msg'  => $errMsg,
                    'file' => $errFile,
                    'line' => $errLine
                ]
            );
        
        //Call the "callRender" method for this class (or child class)
        $this->callRender(
            $errorRender,
            $errType,
            $errMsg,
            $errFile,
            $errLine,
            debug_backtrace()
        );
    }