PHP Class Horde_ErrorHandler, horde

Copyright 2012-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Michael Slusarz ([email protected])
显示文件 Open project: horde/horde Class Usage Examples

Public Methods

Method Description
catchFatalError ( ) Catch fatal errors.
errorHandler ( integer $errno, string $errstr, string $errfile, integer $errline, array $errcontext ) PHP legacy error handling (non-Exceptions).
fatal ( mixed $error ) Aborts with a fatal error, displaying debug information to the user.

Method Details

catchFatalError() public static method

Catch fatal errors.
public static catchFatalError ( )

errorHandler() public static method

PHP legacy error handling (non-Exceptions).
public static errorHandler ( integer $errno, string $errstr, string $errfile, integer $errline, array $errcontext )
$errno integer See set_error_handler().
$errstr string See set_error_handler().
$errfile string See set_error_handler().
$errline integer See set_error_handler().
$errcontext array See set_error_handler().

fatal() public static method

Aborts with a fatal error, displaying debug information to the user.
public static fatal ( mixed $error )
$error mixed Either a string or an object with a getMessage() method (e.g. PEAR_Error, Exception).