public function addError(Error $error)
    {
        $this->result->addError($error);
        $this->setObjectType(self::OBJECT_TYPE_NONE);
    }
public function addError(Error $error)
    {
        $this->result->addError($error);
        $this->setObjectType(self::OBJECT_TYPE_NONE);
    }
public function addError ( Error $ error ) { $ this -> result -> addError ( $ error ) ; $ this -> setObjectType ( self :: OBJECT_TYPE_NONE ) ; }
Adds an error to the processor, which may then be merged with the errors
of the property being currently mapped.

It will also set the object type to `null`, because if there is an error,
the property can probably not being converted correctly.

@param Error $error
Adds an error to the processor which may then be merged with the errors of the property being currently mapped .