public function setError($obj=null)
    {
        $obj = $obj ? $obj : $this->_con;
        if (!is_resource($obj)) {
            return;
        }
        $error = \oci_error($obj);
        if (!$error) {
            return null;
        }
        $this->_last_error = $error;
    }
public function setError($obj=null)
    {
        $obj = $obj ? $obj : $this->_con;
        if (!is_resource($obj)) {
            return;
        }
        $error = \oci_error($obj);
        if (!$error) {
            return null;
        }
        $this->_last_error = $error;
    }
public function setError ( $ obj = null ) { $ obj = $ obj ? $ obj : $ this -> _con ; if ( ! is_resource ( $ obj ) ) { return ; } $ error = \ oci_error ( $ obj ) ; if ( ! $ error ) { return null ; } $ this -> _last_error = $ error ; }
Sets the last error found

@param mixed $obj optional object to extract error from

@return null
Sets the last error found