Symfony\Component\Debug\Exception\FlattenException::getClass PHP Method

getClass() public method

public getClass ( )
    public function getClass()
    {
        return $this->class;
    }

Usage Example

コード例 #1
0
 public function showAction(Request $request, FlattenException $exception, DebugLoggerInterface $logger = null)
 {
     if ($exception->getClass() == MailException::class) {
         return new Response($this->twig->render('CantigaCoreBundle:Exception:mail-exception.html.twig', array('message' => $exception->getMessage())), 501);
     }
     return parent::showAction($request, $exception, $logger);
 }
All Usage Examples Of Symfony\Component\Debug\Exception\FlattenException::getClass