irm-1.6-b3/MDB/oci8.php
/**
     * This method is used to communicate an error and invoke error
     * callbacks etc.  Basically a wrapper for MDB::raiseError
     * that checks for native error msgs.
     * 
     * @param integer $errno error code
     * @param string  $message userinfo message
     * @return object a PEAR error object
     * @access public 
     * @see PEAR_Error
     */
This method is used to communicate an error and invoke error
callbacks etc.  Basically a wrapper for MDB::raiseError
that checks for native error msgs.


This method is used to communicate an error and invoke error callbacks etc . Basically a wrapper for MDB :: raiseError that checks for native error msgs .
function oci8RaiseError($errno = NULL, $message = NULL)
    {
        if ($errno === NULL) {
            if ($this->connection) {
                $error = @OCIError($this->connection);
            } else {
                $error = @OCIError();
            }
            return($this->raiseError($this->errorCode($error['code']),
                NULL, NULL, $message, $error['message']));
        } elseif (is_resource($errno)) {
            $error = @OCIError($errno);
            return($this->raiseError($this->errorCode($error['code']),
                NULL, NULL, $message, $error['message']));
        }
        return($this->raiseError($this->errorCode($errno), NULL, NULL, $message));
    }
function oci8RaiseError ( $ errno = NULL , $ message = NULL ) { if ( $ errno === NULL ) { if ( $ this -> connection ) { $ error = @ OCIError ( $ this -> connection ) ; } else { $ error = @ OCIError ( ) ; } return ( $ this -> raiseError ( $ this -> errorCode ( $ error [ 'code' ] ) , NULL , NULL , $ message , $ error [ 'message' ] ) ) ; } elseif ( is_resource ( $ errno ) ) { $ error = @ OCIError ( $ errno ) ; return ( $ this -> raiseError ( $ this -> errorCode ( $ error [ 'code' ] ) , NULL , NULL , $ message , $ error [ 'message' ] ) ) ; } return ( $ this -> raiseError ( $ this -> errorCode ( $ errno ) , NULL , NULL , $ message ) ) ; }
This method is used to communicate an error and invoke error
 callbacks etc.
This method is used to communicate an error and invoke error callbacks etc .