protected function getItemTextMessage($exception)
    {
    	$text = sprintf('Type: %s' . PHP_EOL, get_class($exception));
    	
    	if (($code = $exception->getCode())) {
    		$text .= sprintf('Code: %s' . PHP_EOL, $code);
    	}
    	
    	if (($message = $exception->getMessage())) {
    		$text .= sprintf('Message: %s' . PHP_EOL, htmlentities($message));
    	}
    	
    	if (($file = $exception->getFile())) {
    		$text .= sprintf('File: %s' . PHP_EOL, $file);
    	}
    	
    	if (($line = $exception->getLine())) {
    		$text .= sprintf('Line: %s' . PHP_EOL, $line);
    	}
    	
    	if (($trace = $exception->getTraceAsString())) {
    		$text .= sprintf('Trace: ' . PHP_EOL. '%s', $trace);
    	}
    	
    	return $text;
    }