PHP 클래스 Bitpay\Util\Error

파일 보기 프로젝트 열기: bitpay/php-client

공개 메소드들

메소드 설명
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