protected handleViewException ( Exception $e, integer $obLevel ) : void | ||
$e | Exception | The exception to handle |
$obLevel | integer | The target output buffering level |
return | void |
protected function handleViewException(\Exception $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
}
$message = $e->getMessage() . ' (View template: ' . realpath($this->_tempFilePath['content']) . ')';
$newException = new \ErrorException($message, 0, 1, $e->getFile(), $e->getLine(), $e);
throw $newException;
}