private static function _parseException(\Exception $e, $plain_text = false)
    {
        $exMsg   = $e->getMessage();
        $exCode  = $e->getCode();
        $exLine  = $e->getLine();
        $exFile  = basename($e->getFile());
        $exTrace = $e->getTrace();

        $trace = '';
        foreach ($exTrace as $key => $row) {
            $trace .= '<span class="traceLine">#' . ($key++) . ' ';

            if (!empty($row['function'])) {
                $trace .= "<b>";
                if (!empty($row['class'])) {
                    $trace .= $row['class'] . $row['type'];
                }

                $trace .= "{$row['function']}</b>()";
            }

            if (!empty($row['file'])) {
                $trace .= " | LINE: <b>{$row['line']}</b> | FILE: <u>" . basename($row['file']) . '</u>';
            }

            $trace .= "</span>\n";
        }

        $msg = "<em style='font-size:larger;'>{$exMsg}</em> (code: {$exCode})<br />\nLINE: <b>{$exLine}</b>\nFILE: <u>{$exFile}</u>";

        $parsed = sprintf("<pre>\n<p style='%s'>\n<strong>EXCEPTION:</strong><br />%s\n%s\n</p>\n</pre>\n\n", self::getFormattedCss(), $msg, $trace);

        return $plain_text ? str_replace(array("\t"), '', strip_tags($parsed)) : $parsed;
    }