constructor PEAR_ErrorStack::PEAR_ErrorStack()
Backwards Compatibility Warning
Внимание |
As of PEAR 1.3.2, PEAR_ErrorStack no longer instantiates and returns an Exception object in PHP5, and the last parameter has been removed. Code that relies upon this behavior will break. |
Описание
Creates a new private PEAR_ErrorStack. To access a universal stack, use PEAR_ErrorStack::singleton()
Параметр
- string $package
name of the package this error stack represents
- callback $msgCallback
callback used for error message generation
- callback $contextCallback
callback used for context generation, defaults to getFileLine()
- boolean $throwPEAR_Error
- string $exceptionClass
exception class to instantiate if in PHP 5
Пред. | Начало | След. |
Introduction to using PEAR_ErrorStack for advanced error handling | Уровень выше | PEAR_ErrorStack::getErrorMessage() |