ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
MDB2_Error Class Reference
+ Inheritance diagram for MDB2_Error:
+ Collaboration diagram for MDB2_Error:

Public Member Functions

 MDB2_Error ($code=MDB2_ERROR, $mode=PEAR_ERROR_RETURN, $level=E_USER_NOTICE, $debuginfo=null)
 MDB2_Error constructor.
- Public Member Functions inherited from PEAR_Error
 PEAR_Error ($message= 'unknown error', $code=null, $mode=null, $options=null, $userinfo=null)
 PEAR_Error constructor.
 getMode ()
 Get the error mode from an error object.
 getCallback ()
 Get the callback function/method from an error object.
 getMessage ()
 Get the error message from an error object.
 getCode ()
 Get error code from an error object.
 getType ()
 Get the name of this error/exception.
 getUserInfo ()
 Get additional user-supplied information.
 getDebugInfo ()
 Get additional debug information supplied by the application.
 getBacktrace ($frame=null)
 Get the call backtrace from where the error was generated.
 addUserInfo ($info)
 __toString ()
 toString ()
 Make a string representation of this object.

Additional Inherited Members

- Data Fields inherited from PEAR_Error
 $error_message_prefix = ''
 $mode = PEAR_ERROR_RETURN
 $level = E_USER_NOTICE
 $code = -1
 $message = ''
 $userinfo = ''
 $backtrace = null

Detailed Description

Definition at line 954 of file MDB2.php.

Member Function Documentation

MDB2_Error::MDB2_Error (   $code = MDB2_ERROR,
  $mode = PEAR_ERROR_RETURN,
  $level = E_USER_NOTICE,
  $debuginfo = null 
)

MDB2_Error constructor.

Parameters
mixedMDB2 error code, or string with error message.
intwhat 'error mode' to operate in
intwhat error level to use for $mode & PEAR_ERROR_TRIGGER
smixedadditional debug info, such as the last query

Definition at line 966 of file MDB2.php.

References PEAR_Error\$code, PEAR_Error\$level, PEAR_Error\$mode, MDB2\errorMessage(), MDB2_ERROR, and PEAR_Error\PEAR_Error().

{
if (is_null($code)) {
}
$this->PEAR_Error('MDB2 Error: '.MDB2::errorMessage($code), $code,
$mode, $level, $debuginfo);
}

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: