Documentation

Horde_ErrorHandler
in package

Provides methods used to handle error reporting.

Copyright 2012-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

license

http://www.horde.org/licenses/lgpl21 LGPL-2.1

Table of Contents

Methods

catchFatalError()  : mixed
Catch fatal errors.
errorHandler()  : mixed
PHP legacy error handling (non-Exceptions).
fatal()  : mixed
Aborts with a fatal error, displaying debug information to the user.

Methods

catchFatalError()

Catch fatal errors.

public static catchFatalError() : mixed

errorHandler()

PHP legacy error handling (non-Exceptions).

public static errorHandler(int $errno, string $errstr, string $errfile, int $errline) : mixed
Parameters
$errno : int

See set_error_handler().

$errstr : string

See set_error_handler().

$errfile : string

See set_error_handler().

$errline : int

See set_error_handler().

fatal()

Aborts with a fatal error, displaying debug information to the user.

public static fatal(mixed $error) : mixed
Parameters
$error : mixed

Either a string or an object with a getMessage() method (e.g. PEAR_Error, Exception).


        
On this page

Search results