Autarky\Errors\ErrorHandlerManager::handleUncaught PHP Method

handleUncaught() public method

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
return Symfony\Component\HttpFoundation\Response
    public function handleUncaught(Exception $exception)
    {
        if (PHP_SAPI === 'cli') {
            throw $exception;
        }
        return $this->handle($exception)->send();
    }