ILIAS
Release_4_0_x_branch Revision 61816
|
Error Handling & global info handling uses PEAR error class. More...
Public Member Functions | |
ilErrorHandling () | |
Constructor public. | |
getLastError () | |
errorHandler ($a_error_obj) | |
defines what has to happen in case of error private | |
getMessage () | |
setMessage ($a_message) | |
appendMessage ($a_message) | |
Public Member Functions inherited from PEAR | |
PEAR ($error_class=null) | |
Constructor. | |
_PEAR () | |
Destructor (the emulated type of...). | |
& | getStaticProperty ($class, $var) |
If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them. | |
registerShutdownFunc ($func, $args=array()) | |
Use this function to register a shutdown method for static classes. | |
isError ($data, $code=null) | |
Tell whether a value is a PEAR error. | |
setErrorHandling ($mode=null, $options=null) | |
Sets how errors generated by this object should be handled. | |
expectError ($code= '*') | |
This method is used to tell which errors you expect to get. | |
popExpect () | |
This method pops one element off the expected error codes stack. | |
_checkDelExpect ($error_code) | |
This method checks unsets an error code if available. | |
delExpect ($error_code) | |
This method deletes all occurences of the specified element from the expected error codes stack. | |
& | raiseError ($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false) |
This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied. | |
& | throwError ($message=null, $code=null, $userinfo=null) |
Simpler form of raiseError with fewer options. | |
staticPushErrorHandling ($mode, $options=null) | |
staticPopErrorHandling () | |
pushErrorHandling ($mode, $options=null) | |
Push a new error handler on top of the error handler options stack. | |
popErrorHandling () | |
Pop the last error handler used. | |
loadExtension ($ext) | |
OS independant PHP extension load. |
Static Public Member Functions | |
static | _ilErrorWriter ($errno, $errstr, $errfile, $errline) |
This is used in Soap calls to write PHP error in ILIAS Logfile Not used yet!!! |
Data Fields | |
$DEBUG_ENV | |
$FATAL | |
$WARNING | |
$MESSAGE | |
Data Fields inherited from PEAR | |
$_debug = false | |
$_default_error_mode = null | |
$_default_error_options = null | |
$_default_error_handler = '' | |
$_error_class = 'PEAR_Error' | |
$_expected_errors = array() |
Error Handling & global info handling uses PEAR error class.
Definition at line 17 of file class.ilErrorHandling.php.
|
static |
This is used in Soap calls to write PHP error in ILIAS Logfile Not used yet!!!
public
Definition at line 195 of file class.ilErrorHandling.php.
ilErrorHandling::appendMessage | ( | $a_message | ) |
Definition at line 177 of file class.ilErrorHandling.php.
References getMessage().
ilErrorHandling::errorHandler | ( | $a_error_obj | ) |
defines what has to happen in case of error private
object | Error |
Definition at line 74 of file class.ilErrorHandling.php.
References $_POST, $_SESSION, $FATAL, $log, $MESSAGE, $WARNING, and ilUtil\redirect().
ilErrorHandling::getLastError | ( | ) |
Definition at line 64 of file class.ilErrorHandling.php.
ilErrorHandling::getMessage | ( | ) |
Definition at line 169 of file class.ilErrorHandling.php.
Referenced by appendMessage().
ilErrorHandling::ilErrorHandling | ( | ) |
Constructor public.
Definition at line 51 of file class.ilErrorHandling.php.
References PEAR\PEAR().
ilErrorHandling::setMessage | ( | $a_message | ) |
Definition at line 173 of file class.ilErrorHandling.php.
ilErrorHandling::$DEBUG_ENV |
Definition at line 24 of file class.ilErrorHandling.php.
ilErrorHandling::$FATAL |
Definition at line 31 of file class.ilErrorHandling.php.
Referenced by errorHandler().
ilErrorHandling::$MESSAGE |
Definition at line 45 of file class.ilErrorHandling.php.
Referenced by errorHandler().
ilErrorHandling::$WARNING |
Definition at line 38 of file class.ilErrorHandling.php.
Referenced by errorHandler().