protected function getItemHtmlMessage($exception)
    {
        $html = sprintf('<div><strong>Type:</strong> %s</div>', get_class($exception));
        
        if (($code = $exception->getCode())) {
            $html .= sprintf('<div><strong>Code:</strong> %s</div>', $code);
        }
        
        if (($message = $exception->getMessage())) {
            $html .= sprintf('<div><strong>Message:</strong> %s</div>', htmlentities($message));
        }
        
        if (($file = $exception->getFile())) {
            $html .= sprintf('<div><strong>File:</strong> %s</div>', $file);
        }
        
        if (($line = $exception->getLine())) {
            $html .= sprintf('<div><strong>Line:</strong> %s</div>', $line);
        }
        
        if (($trace = $exception->getTraceAsString())) {
            $html .= '<h2>Trace</h2>';
            $html .= sprintf('<pre>%s</pre>', htmlentities($trace));
        }
        
        return $html;
    }
protected function getItemHtmlMessage($exception)
    {
        $html = sprintf('<div><strong>Type:</strong> %s</div>', get_class($exception));
        
        if (($code = $exception->getCode())) {
            $html .= sprintf('<div><strong>Code:</strong> %s</div>', $code);
        }
        
        if (($message = $exception->getMessage())) {
            $html .= sprintf('<div><strong>Message:</strong> %s</div>', htmlentities($message));
        }
        
        if (($file = $exception->getFile())) {
            $html .= sprintf('<div><strong>File:</strong> %s</div>', $file);
        }
        
        if (($line = $exception->getLine())) {
            $html .= sprintf('<div><strong>Line:</strong> %s</div>', $line);
        }
        
        if (($trace = $exception->getTraceAsString())) {
            $html .= '<h2>Trace</h2>';
            $html .= sprintf('<pre>%s</pre>', htmlentities($trace));
        }
        
        return $html;
    }
protected function getItemHtmlMessage ( $ exception ) { $ html = sprintf ( '<div><strong>Type:</strong> %s</div>' , get_class ( $ exception ) ) ; if ( ( $ code = $ exception -> getCode ( ) ) ) { $ html .= sprintf ( '<div><strong>Code:</strong> %s</div>' , $ code ) ; } if ( ( $ message = $ exception -> getMessage ( ) ) ) { $ html .= sprintf ( '<div><strong>Message:</strong> %s</div>' , htmlentities ( $ message ) ) ; } if ( ( $ file = $ exception -> getFile ( ) ) ) { $ html .= sprintf ( '<div><strong>File:</strong> %s</div>' , $ file ) ; } if ( ( $ line = $ exception -> getLine ( ) ) ) { $ html .= sprintf ( '<div><strong>Line:</strong> %s</div>' , $ line ) ; } if ( ( $ trace = $ exception -> getTraceAsString ( ) ) ) { $ html .= '<h2>Trace</h2>' ; $ html .= sprintf ( '<pre>%s</pre>' , htmlentities ( $ trace ) ) ; } return $ html ; }
get each exception html content

@param Exception $exception

@return string
get each exception html content