src/Shared/Error/ErrorAwareTrait.php
public function copyError($obj)
    {
        if ($obj instanceof ErrorAwareInterface) {
            $this->setError($obj->getError(), $obj->getErrorCode());
        }
    }
public function copyError($obj)
    {
        if ($obj instanceof ErrorAwareInterface) {
            $this->setError($obj->getError(), $obj->getErrorCode());
        }
    }
{@inheritDoc}