irm-1.6-b3/MDB/fbsql.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 fbsqlRaiseError($errno = NULL, $message = NULL)
    {
        if ($errno == NULL) {
            if ($this->connection) {
                $errno = @fbsql_errno($this->connection);
            } else {
                $errno = @fbsql_errno();
            }
        }
        if ($this->connection) {
            $error = @fbsql_errno($this->connection);
        } else {
            $error = @fbsql_error();
        }
        return($this->raiseError($this->errorCode($errno), NULL, NULL,
            $message, $error));
    }
function fbsqlRaiseError ( $ errno = NULL , $ message = NULL ) { if ( $ errno == NULL ) { if ( $ this -> connection ) { $ errno = @ fbsql_errno ( $ this -> connection ) ; } else { $ errno = @ fbsql_errno ( ) ; } } if ( $ this -> connection ) { $ error = @ fbsql_errno ( $ this -> connection ) ; } else { $ error = @ fbsql_error ( ) ; } return ( $ this -> raiseError ( $ this -> errorCode ( $ errno ) , NULL , NULL , $ message , $ error ) ) ; }
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 .