PHP Класс Bitpay\Util\Error

Показать файл Открыть проект

Открытые методы

Метод Описание
backtrace ( $print = false, $options = false, $limit ) : array | void Generates a backtrace and returns an array of associative arrays or prints to stdout. The possible returned elements are as follows: function, line, file, class, object, type and args.
handler ( $type = 'error', $action = 'restore', $callable_handler = false, $error_types = null ) Sets or restores either the error or exception handler based on the $type and $action parameters.
last ( ) : array Get the last occurred error and returns an associative array describing the last error with keys "type", "message", "file" and "line". If the error has been caused by a PHP internal function then the "message" begins with its name.
log ( $message, $message_type, $destination = '', $extra_headers = '' ) Send an error message to the defined error handling routines. Returns true on success or false on failure.
raise ( $error_msg, $error_type = E_USER_NOTICE ) : boolean Generates a user-level error/warning/notice message.
reporting ( $level = false ) : integer Sets which PHP errors are reported or returns the old error_reporting level or the current level if no level parameter is given.

Описание методов

backtrace() закрытый публичный Метод

(PHP 4 >= 4.3.0, PHP 5)
final public backtrace ( $print = false, $options = false, $limit ) : array | void
Результат array | void

handler() закрытый публичный Метод

(PHP 4 >= 4.0.1, PHP 5)
final public handler ( $type = 'error', $action = 'restore', $callable_handler = false, $error_types = null )

last() закрытый публичный Метод

Returns NULL if there hasn't been an error yet. (PHP 5 >= 5.2.0)
final public last ( ) : array
Результат array

log() закрытый публичный Метод

The possible values for $message_type are: 0 = system log, 1 = email to $destination, 2 = depricated, 3 = appended to file $destination, 4 = sent to SAPI log handler. (PHP 4, PHP 5)
final public log ( $message, $message_type, $destination = '', $extra_headers = '' )

raise() закрытый публичный Метод

This function returns FALSE if wrong $error_type is specified, TRUE otherwise. The $error_msg param is limited to 1024 bytes. (PHP 4 >= 4.0.1, PHP 5)
final public raise ( $error_msg, $error_type = E_USER_NOTICE ) : boolean
Результат boolean

reporting() закрытый публичный Метод

(PHP 4, PHP 5)
final public reporting ( $level = false ) : integer
Результат integer