irm-1.6-b3/MDB/Manager.php
/**
     * This method is used to communicate an error and invoke error
     * callbacks etc.  Basically a wrapper for PEAR::raiseError
     * without the message string.
     *
     * @param mixed $code integer error code, or a PEAR error object (all
     *      other parameters are ignored if this parameter is an object
     * @param int $mode error mode, see PEAR_Error docs
     * @param mixed $options If error mode is PEAR_ERROR_TRIGGER, this is the
     *      error level (E_USER_NOTICE etc).  If error mode is
     *      PEAR_ERROR_CALLBACK, this is the callback function, either as a
     *      function name, or as an array of an object and method name. For
     *      other error modes this parameter is ignored.
     * @param string $userinfo Extra debug information.  Defaults to the last
     *      query and native error code.
     * @param mixed $nativecode Native error code, integer or string depending
     *      the backend.
     * @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 PEAR::raiseError
without the message string.

@param mixed $code integer error code, or a PEAR error object (all
other parameters are ignored if this parameter is an object
@param int $mode error mode, see PEAR_Error docs
@param mixed $options If error mode is PEAR_ERROR_TRIGGER, this is the
error level (E_USER_NOTICE etc).  If error mode is
PEAR_ERROR_CALLBACK, this is the callback function, either as a
function name, or as an array of an object and method name. For
other error modes this parameter is ignored.
@param string $userinfo Extra debug information.  Defaults to the last
query and native error code.
@param mixed $nativecode Native error code, integer or string depending
the backend.
@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 PEAR :: raiseError without the message string . @param mixed $code integer error code or a PEAR error object ( all other parameters are ignored if this parameter is an object @param int $mode error mode see PEAR_Error docs @param mixed $options If error mode is PEAR_ERROR_TRIGGER this is the error level ( E_USER_NOTICE etc ) . If error mode is PEAR_ERROR_CALLBACK this is the callback function either as a function name or as an array of an object and method name . For other error modes this parameter is ignored . @param string $userinfo Extra debug information . Defaults to the last query and native error code . @param mixed $nativecode Native error code integer or string depending the backend . @return object a PEAR error object @access public @see PEAR_Error
function &raiseError($code = MDB_MANAGER_ERROR, $mode = NULL, $options = NULL,
        $userinfo = NULL, $nativecode = NULL)
    {
        if(is_object($code)) {
            $err = PEAR::raiseError($code, NULL, NULL, NULL, NULL, NULL, TRUE);
            return($err);
        }
        $err = PEAR::raiseError(NULL, $code, $mode, $options, $userinfo,
            'MDB_Error', TRUE);
        return($err);
    }
function & raiseError ( $ code = MDB_MANAGER_ERROR , $ mode = NULL , $ options = NULL , $ userinfo = NULL , $ nativecode = NULL ) { if ( is_object ( $ code ) ) { $ err = PEAR :: raiseError ( $ code , NULL , NULL , NULL , NULL , NULL , TRUE ) ; return ( $ err ) ; } $ err = PEAR :: raiseError ( NULL , $ code , $ mode , $ options , $ userinfo , 'MDB_Error' , TRUE ) ; return ( $ err ) ; }
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 .
// The error is yet a MDB error object