protected function callActionMethod()
    {
        try {
            parent::callActionMethod();
        } catch (\Google_Service_Exception $exception) {
            $this->addFlashMessage('%1$s', 'Google API error', \Neos\Error\Messages\Message::SEVERITY_ERROR, ['message' => $exception->getMessage(), 1415797974]);
            $this->forward('errorMessage');
        } catch (MissingConfigurationException $exception) {
            $this->addFlashMessage('%1$s', 'Missing configuration', \Neos\Error\Messages\Message::SEVERITY_ERROR, ['message' => $exception->getMessage(), 1415797974]);
            $this->forward('errorMessage');
        } catch (AuthenticationRequiredException $exception) {
            $this->redirect('authenticate');
        }
    }
protected function callActionMethod()
    {
        try {
            parent::callActionMethod();
        } catch (\Google_Service_Exception $exception) {
            $this->addFlashMessage('%1$s', 'Google API error', \Neos\Error\Messages\Message::SEVERITY_ERROR, ['message' => $exception->getMessage(), 1415797974]);
            $this->forward('errorMessage');
        } catch (MissingConfigurationException $exception) {
            $this->addFlashMessage('%1$s', 'Missing configuration', \Neos\Error\Messages\Message::SEVERITY_ERROR, ['message' => $exception->getMessage(), 1415797974]);
            $this->forward('errorMessage');
        } catch (AuthenticationRequiredException $exception) {
            $this->redirect('authenticate');
        }
    }
protected function callActionMethod ( ) { try { parent :: callActionMethod ( ) ; } catch ( \ Google_Service_Exception $ exception ) { $ this -> addFlashMessage ( '%1$s' , 'Google API error' , \ Neos \ Error \ Messages \ Message :: SEVERITY_ERROR , [ 'message' => $ exception -> getMessage ( ) , 1415797974 ] ) ; $ this -> forward ( 'errorMessage' ) ; } catch ( MissingConfigurationException $ exception ) { $ this -> addFlashMessage ( '%1$s' , 'Missing configuration' , \ Neos \ Error \ Messages \ Message :: SEVERITY_ERROR , [ 'message' => $ exception -> getMessage ( ) , 1415797974 ] ) ; $ this -> forward ( 'errorMessage' ) ; } catch ( AuthenticationRequiredException $ exception ) { $ this -> redirect ( 'authenticate' ) ; } }
Catch Google service exceptions and forward to the "apiError" action to show
an error message.

@return void
Catch Google service exceptions and forward to the apiError action to show an error message .