protected function setError($resource)
    {
        if (is_string($resource)) {
            $this->getDriver()->setError(
                $resource, -1
            );
        } else {
            $this->getDriver()->setError(
                $this->realError($resource),
                $this->realErrorCode($resource)
            );
        }
    }
protected function setError($resource)
    {
        if (is_string($resource)) {
            $this->getDriver()->setError(
                $resource, -1
            );
        } else {
            $this->getDriver()->setError(
                $this->realError($resource),
                $this->realErrorCode($resource)
            );
        }
    }
protected function setError ( $ resource ) { if ( is_string ( $ resource ) ) { $ this -> getDriver ( ) -> setError ( $ resource , - 1 ) ; } else { $ this -> getDriver ( ) -> setError ( $ this -> realError ( $ resource ) , $ this -> realErrorCode ( $ resource ) ) ; } }
Set driver error

@param  mixed $resource
@access protected
Set driver error