CodeExplorer renderExceptions example
public function sendResponse() { $headers =
$this->
getHeaders();
$content =
implode("\n",
$headers) . "\n\n";
if ($this->
isException() &&
$this->
renderExceptions()) { $exceptions = '';
foreach ($this->
getException() as $e) { $exceptions .=
$e->
__toString() . "\n";
} $content .=
$exceptions;
} else { $content .=
$this->
outputBody();
} return $content;
}}