Exceptions

Ce bien n’est pas présent dans notre base de donnée

  • Exception
  • Logs
  • Stack Trace

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

  1.      *
  2.      * @final
  3.      */
  4.     protected function createNotFoundException(string $message 'Not Found', \Throwable $previous null): NotFoundHttpException
  5.     {
  6.         return new NotFoundHttpException($message$previous);
  7.     }
  8.     /**
  9.      * Returns an AccessDeniedException.
  10.      *
AbstractController->createNotFoundException('Ce bien n’est pas présent dans notre base de donnée') in src/AppBundle/Controller/BienController.php (line 128)
  1.                 $session->set('redirect_text'"$com_str à vendre en $departement_str");
  2.             }
  3.             # Cause an better 404 error with more info using session variables
  4.             # Use the throw, or else it really causes a blank 404 error
  5.             throw $this->createNotFoundException('Ce bien n’est pas présent dans notre base de donnée');
  6.         }
  7.         $bien $bien[0]; # We have only one bien
  8.         if ($geo_situation == 'n-a') {
  9.             # url contains geo_situation, which could be empty. Correct and redirect
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle(object(Request)) in web/app_dev.php (line 30)
  1. Debug::enable();
  2. $kernel = new AppKernel('dev'true);
  3. //$kernel->loadClassCache();
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);