protected function decorateException(\Exception $e, $status) {

		$headerTpl = '
		<!DOCTYPE html>
		<html>
			<head>
				<title>Error %d</title>
				<meta http-equiv="content-type" content="text/html; charset=UTF-8">
			</head>
			<body>
				<table>
					<tr>
						<th colspan="4">%s</th>
					</tr>
					<tr>
						<th></th>
						<th>File</th>
						<th>Line</th>
						<th>Function</th>
					</tr>
		';

		$footerTpl = '				
				</table>
			</body>
		</html>';

		$rowTpl = '<tr><td>%d</td><td>%s</td><td>%d</td><td>%s</td></tr>';

		$content = sprintf($headerTpl, $status, $e->getMessage());

		foreach($e->getTrace() as $ndx => $level) {
			
			// skip row with error handler

			if($ndx) {
				$content .= sprintf(
					$rowTpl,
					$ndx,
					$level['file'],
					$level['line'],
					(isset($level['class']) ? ($level['class'] . $level['type'] . $level['function']) : $level['function']) . '()'
				);
			}
		}

		$content .= $footerTpl;

		return $content;

	}
protected function decorateException(\Exception $e, $status) {

		$headerTpl = '
		<!DOCTYPE html>
		<html>
			<head>
				<title>Error %d</title>
				<meta http-equiv="content-type" content="text/html; charset=UTF-8">
			</head>
			<body>
				<table>
					<tr>
						<th colspan="4">%s</th>
					</tr>
					<tr>
						<th></th>
						<th>File</th>
						<th>Line</th>
						<th>Function</th>
					</tr>
		';

		$footerTpl = '				
				</table>
			</body>
		</html>';

		$rowTpl = '<tr><td>%d</td><td>%s</td><td>%d</td><td>%s</td></tr>';

		$content = sprintf($headerTpl, $status, $e->getMessage());

		foreach($e->getTrace() as $ndx => $level) {
			
			// skip row with error handler

			if($ndx) {
				$content .= sprintf(
					$rowTpl,
					$ndx,
					$level['file'],
					$level['line'],
					(isset($level['class']) ? ($level['class'] . $level['type'] . $level['function']) : $level['function']) . '()'
				);
			}
		}

		$content .= $footerTpl;

		return $content;

	}
protected function decorateException ( \ Exception $ e , $ status ) { $ headerTpl = '
		<!DOCTYPE html>
		<html>
			<head>
				<title>Error %d</title>
				<meta http-equiv="content-type" content="text/html; charset=UTF-8">
			</head>
			<body>
				<table>
					<tr>
						<th colspan="4">%s</th>
					</tr>
					<tr>
						<th></th>
						<th>File</th>
						<th>Line</th>
						<th>Function</th>
					</tr>
		' ; $ footerTpl = '				
				</table>
			</body>
		</html>' ; $ rowTpl = '<tr><td>%d</td><td>%s</td><td>%d</td><td>%s</td></tr>' ; $ content = sprintf ( $ headerTpl , $ status , $ e -> getMessage ( ) ) ; foreach ( $ e -> getTrace ( ) as $ ndx => $ level ) { // skip row with error handler if ( $ ndx ) { $ content .= sprintf ( $ rowTpl , $ ndx , $ level [ 'file' ] , $ level [ 'line' ] , ( isset ( $ level [ 'class' ] ) ? ( $ level [ 'class' ] . $ level [ 'type' ] . $ level [ 'function' ] ) : $ level [ 'function' ] ) . '()' ) ; } } $ content .= $ footerTpl ; return $ content ; }
generate simple formatted output of exception

@param \Exception $e
@param integer $status

@return string
generate simple formatted output of exception