예제 #1
0
 /**
  * {@inheritDoc}
  */
 public function handleException(Request $request, HttpException $exception)
 {
     if ($this->isAllowed($exception->getStatusCode())) {
         return $this->kernel->handleException($request, $exception);
     }
     throw $exception;
 }
예제 #2
0
 /**
  * {@inheritDoc}
  */
 public function handleException(Request $request, HttpException $exception)
 {
     $response = $this->kernel->handleException($request, $exception);
     $profile = $this->profiler->collect($request, $response, $exception);
     $this->profiler->saveProfile($profile);
     return $response;
 }
예제 #3
0
 /**
  * {@inheritDoc}
  */
 public function handleException(Request $request, HttpException $exception)
 {
     $this->logger->log($this->getLogLevel($exception), $this->getMessage($exception), ['exception' => $exception]);
     return $this->kernel->handleException($request, $exception);
 }