ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
MDB2_Error Class Reference
+ Inheritance diagram for MDB2_Error:
+ Collaboration diagram for MDB2_Error:

Public Member Functions

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

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 959 of file MDB2.php.

Constructor & Destructor Documentation

◆ __construct()

MDB2_Error::__construct (   $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 971 of file MDB2.php.

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

973  {
974  if (is_null($code)) {
975  $code = MDB2_ERROR;
976  }
977  parent::__construct('MDB2 Error: '.MDB2::errorMessage($code), $code,
978  $mode, $level, $debuginfo);
979  }
const MDB2_ERROR
Definition: MDB2.php:73
errorMessage($value=null)
Return a textual error message for a MDB2 error code.
Definition: MDB2.php:697
+ Here is the call graph for this function:

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