eZPublishCommunityProject  2012.12
eZ\Publish\Core\Base\Exceptions\ContentFieldValidationException Class Reference

This Exception is thrown on create or update content one or more given fields are not valid. More...

+ Inheritance diagram for eZ\Publish\Core\Base\Exceptions\ContentFieldValidationException:
+ Collaboration diagram for eZ\Publish\Core\Base\Exceptions\ContentFieldValidationException:

Public Member Functions

 __construct (array $errors)
 Generates: Content fields did not validate. More...
 
 getFieldErrors ()
 Returns an array of field validation error messages. More...
 
- Public Member Functions inherited from eZ\Publish\API\Repository\Exceptions\ContentFieldValidationException
 getFieldErrors ()
 Returns an array of field validation error messages. More...
 

Protected Attributes

 $errors
 

Detailed Description

This Exception is thrown on create or update content one or more given fields are not valid.

Constructor & Destructor Documentation

eZ\Publish\Core\Base\Exceptions\ContentFieldValidationException::__construct ( array  $errors)

Generates: Content fields did not validate.

Also sets the given $fieldErrors to the internal property, retrievable by getFieldErrors()

Parameters
\eZ\Publish\Core\FieldType\ValidationError[]$errors

Member Function Documentation

eZ\Publish\Core\Base\Exceptions\ContentFieldValidationException::getFieldErrors ( )

Returns an array of field validation error messages.

Returns
[]

Member Data Documentation

eZ\Publish\Core\Base\Exceptions\ContentFieldValidationException::$errors
protected

The documentation for this class was generated from the following file: