private handleException ( Exception $e ) : string | ||
$e | Exception | |
return | string |
private function handleException(\Exception $e)
{
trigger_error($e->getMessage() . "\n" . $e->getTraceAsString(), E_USER_WARNING);
if ($e instanceof \Twig_Error) {
return '<strong>' . $e->getRawMessage() . '</strong>';
}
return '';
}