PHP Class eZ\Publish\Core\Base\Exceptions\ContentFieldValidationException

Inheritance: extends eZ\Publish\API\Repository\Exceptions\ContentFieldValidationException, implements eZ\Publish\Core\Base\Translatable, use trait eZ\Publish\Core\Base\TranslatableBase
显示文件 Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$errors eZ\Publish\Core\FieldType\ValidationError[] Example: $fieldErrors = $exception->getFieldErrors(); $fieldErrors["43"]["eng-GB"]->getTranslatableMessage();

Public Methods

Method Description
__construct ( array $errors ) Generates: Content fields did not validate.
getFieldErrors ( ) : ValidationError[] Returns an array of field validation error messages.

Method Details

__construct() public method

Also sets the given $fieldErrors to the internal property, retrievable by getFieldErrors()
public __construct ( array $errors )
$errors array

getFieldErrors() public method

Returns an array of field validation error messages.
public getFieldErrors ( ) : ValidationError[]
return eZ\Publish\Core\FieldType\ValidationError[]

Property Details

$errors protected_oe property

Example: $fieldErrors = $exception->getFieldErrors(); $fieldErrors["43"]["eng-GB"]->getTranslatableMessage();
protected ValidationError[],eZ\Publish\Core\FieldType $errors
return eZ\Publish\Core\FieldType\ValidationError[]