eZ\Publish\Core\REST\Server\Tests\Output\ValueObjectVisitor\ContentFieldValidationExceptionTest::getException PHP Method

getException() protected method

Gets the exception.
protected getException ( ) : Exception
return Exception
    protected function getException()
    {
        return new Exceptions\ContentFieldValidationException(new CoreContentFieldValidationException([1 => ['eng-GB' => new ValidationError("Value for required field definition '%identifier%' with language '%languageCode%' is empty", null, ['%identifier%' => 'name', '%languageCode%' => 'eng-GB'], 'empty')], 2 => ['eng-GB' => new ValidationError('The value must be a valid email address.', null, [], 'email')]]));
    }