public buildForException ( Exception $exception ) : |
||
$exception | Exception | |
return |
public function buildForException(\Exception $exception)
{
$content = sprintf('There was a internal server error with message: %s', $exception->getMessage());
return new Response($content, 500, ['TuTu-Error' => 'Internal']);
}