Symfony\Component\HttpKernel\Exception\FlattenException::getMessage PHP Méthode

getMessage() public méthode

public getMessage ( )
    public function getMessage()
    {
        return $this->message;
    }

Usage Example

Exemple #1
0
 public function showAction(FlattenException $exception, DebugLoggerInterface $logger = null, $format = 'html')
 {
     $statusCode = $exception->getStatusCode();
     $statusText = $exception->getMessage();
     $response = $this->render('GitonomyWebsiteBundle:Error:error.html.twig', array('status_code' => $statusCode, 'status_text' => $statusText));
     $response->setStatusCode($statusCode);
     $response->headers->replace($exception->getHeaders());
     return $response;
 }
All Usage Examples Of Symfony\Component\HttpKernel\Exception\FlattenException::getMessage