constructor PEAR_ErrorStack::PEAR_ErrorStack

constructor PEAR_ErrorStack::PEAR_ErrorStack() – Set up a new error stack instance

Synopsis

require_once 'PEAR/ErrorStack.php';

void constructor PEAR_ErrorStack::PEAR_ErrorStack ( string $package , callback $msgCallback = false , callback $contextCallback = false , boolean $throwPEAR_Error = false )

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.

Description

Creates a new private PEAR_ErrorStack. To access a universal stack, use PEAR_ErrorStack::singleton()

Parameter

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

Throws

throws no exceptions thrown

Note

This function can not be called statically.

Using PEAR_ErrorStack to do both simple and advanced error handling (Previous) Standard error message generation callback (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.