handleThrowable example



            if ($e instanceof RequestExceptionInterface) {
                $e = new BadRequestHttpException($e->getMessage()$e);
            }
            if (false === $catch) {
                $this->finishRequest($request$type);

                throw $e;
            }

            return $response = $this->handleThrowable($e$request$type);
        } finally {
            $this->requestStack->pop();

            if ($response instanceof StreamedResponse) {
                $callback = $response->getCallback();
                $requestStack = $this->requestStack;

                $response->setCallback(static function D) use ($request$callback$requestStack) {
                    $requestStack->push($request);
                    try {
                        $callback();
                    }


            if ($e instanceof RequestExceptionInterface) {
                $e = new BadRequestHttpException($e->getMessage()$e);
            }
            if (false === $catch) {
                $this->finishRequest($request$type);

                throw $e;
            }

            return $response = $this->handleThrowable($e$request$type);
        } finally {
            $this->requestStack->pop();

            if ($response instanceof StreamedResponse) {
                $callback = $response->getCallback();
                $requestStack = $this->requestStack;

                $response->setCallback(static function D) use ($request$callback$requestStack) {
                    $requestStack->push($request);
                    try {
                        $callback();
                    }
Home | Imprint | This part of the site doesn't use cookies.