public function error($code, $message, $file, $line, $context = null)
    {
        if (error_reporting() === 0) {
            return;
        }

        $content = sprintf('%s. File: %s (line: %s)', $message, $file, $line);

        throw new \ErrorException($content, 500, $code, $file, $line, new \Error());
    }