|
|
(Next) Introduction to using PEAR_ErrorStack for advanced error handling |
||||
| |
|||||
|
|||||
Die Klasse PEAR_ErrorStack ist ein neuer Weg, um Fehler zu signalisieren und zu handhaben. Sie wird PEAR_Error ersetzen, wenn sie die nötige Reife erreicht hat. PEAR_ErrorStack ist rückwärts-kompatibel zu PEAR_Error und vorwärts-kompatibel mit der PEAR_Exception für PHP 5.
Usage:
1 // global error stack
2 $global_stack = &PEAR_ErrorStack::
singleton('MyPackage');
3 // local error stack
4 $local_stack = new
PEAR_ErrorStack('MyPackage');
|
|
(Next) Introduction to using PEAR_ErrorStack for advanced error handling |
||||||||
| |
|||||||||
|
|||||||||