Neos\Flow\Mvc\Controller\ActionController::getErrorFlashMessage PHP Method

getErrorFlashMessage() protected method

A template method for displaying custom error flash messages, or to display no flash message at all on errors. Override this to customize the flash message in your action controller.
protected getErrorFlashMessage ( ) : Neos\Error\Messages\Message
return Neos\Error\Messages\Message The flash message or FALSE if no flash message should be set
    protected function getErrorFlashMessage()
    {
        return new Error\Error('An error occurred while trying to call %1$s->%2$s()', null, [get_class($this), $this->actionMethodName]);
    }