Autarky\Errors\ErrorHandlerManager::handleUncaught PHP Méthode

handleUncaught() public méthode

Handle an uncaught exception. Does the same as handle(), but also sends the response, as we can assume that the exception happened outside of HttpKernelInterface::handle.
public handleUncaught ( Exception $exception ) : Response
$exception Exception
Résultat Symfony\Component\HttpFoundation\Response
    public function handleUncaught(Exception $exception)
    {
        if (PHP_SAPI === 'cli') {
            throw $exception;
        }
        return $this->handle($exception)->send();
    }