src/Controller/FormAwareMethods.php
protected function getGeneralErrorMessage(\Exception $caught)
    {
        $singleName = $this->getEntityNameSingular();
        $message = "There was an error when saving {$singleName} data: %s";
        return sprintf($this->translate($message), $caught->getMessage());
    }
protected function getGeneralErrorMessage(\Exception $caught)
    {
        $singleName = $this->getEntityNameSingular();
        $message = "There was an error when saving {$singleName} data: %s";
        return sprintf($this->translate($message), $caught->getMessage());
    }
protected function getGeneralErrorMessage ( \ Exception $ caught ) { $ singleName = $ this -> getEntityNameSingular ( ) ; $ message = "There was an error when saving {$singleName} data: %s" ; return sprintf ( $ this -> translate ( $ message ) , $ caught -> getMessage ( ) ) ; }
Get invalid form data message

@param \Exception $caught

@return string
Get invalid form data message