private function shareExceptionTrace(ResponseInterface $response): void
    {
        foreach ($response->getExceptions() as $exception) {
            if ($exception instanceof GraphQLExceptionInterface) {
                $exception->withExtension(new ExceptionTraceExtension($exception));
            }

            $exception->publish();
        }
    }
private function shareExceptionTrace(ResponseInterface $response): void
    {
        foreach ($response->getExceptions() as $exception) {
            if ($exception instanceof GraphQLExceptionInterface) {
                $exception->withExtension(new ExceptionTraceExtension($exception));
            }

            $exception->publish();
        }
    }
private function shareExceptionTrace ( ResponseInterface $ response ) : void { foreach ( $ response -> getExceptions ( ) as $ exception ) { if ( $ exception instanceof GraphQLExceptionInterface ) { $ exception -> withExtension ( new ExceptionTraceExtension ( $ exception ) ) ; } $ exception -> publish ( ) ; } }
Toggles all exceptions in response to debug mode.

@param ResponseInterface $response
Toggles all exceptions in response to debug mode .