Bolt\Response\BoltResponse::handleException PHP Метод

handleException() приватный Метод

The __toString method isn't allowed to throw exceptions so we turn them into an error instead
private handleException ( Exception $e ) : string
$e Exception
Результат 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 '';
    }