public function addError(OperationError $ex, bool $stopPropagation = false) {
        $this->lastError = $ex;
        if ($stopPropagation) {
            $this->stopPropagation();
        }
    }
public function addError(OperationError $ex, bool $stopPropagation = false) {
        $this->lastError = $ex;
        if ($stopPropagation) {
            $this->stopPropagation();
        }
    }
public function addError ( OperationError $ ex , bool $ stopPropagation = false ) { $ this -> lastError = $ ex ; if ( $ stopPropagation ) { $ this -> stopPropagation ( ) ; } }
Adds an OperationError to the operation events error list.

If the argument <code>$stopPropagation</code> is true than this operation
will stop propagating once complete.

@param \Nasumilu\Geometry\Operation\OperationError $ex
@param bool $stopPropagation
Adds an OperationError to the operation events error list .