Category : handle

i want to ask more experienced symfony dev about exception handling. I know i should make and EventListener and inside handle exceptions. But what if i got isnert into exception value should not be null? public function onKernelException(ExceptionEvent $event) { $exception = $event->getThrowable(); $message = sprintf( ‘ERROR:%s|CODE:%s’, $exception->getMessage(), $exception->getCode() ); $response = new Response(); $response->setContent($message); ..

Read more