PHP Class ZBlogException

ファイルを表示 Open project: zblogcn/zblogphp Class Usage Examples

Public Properties

Property Type Description
$errarray
$error_file
$error_id
$error_line
$file
$isdisable
$islogerror
$isstrict
$iswarning
$line
$message
$messagefull
$type

Public Methods

Method Description
ClearErrorHook ( ) 清除注册的错误处理程序
DisableErrorHook ( ) 禁止错误调度
DisableStrict ( ) 恢复错误调度
DisableWarning ( )
Display ( ) 输出错误信息
EnableErrorHook ( ) 启用错误调度
EnableStrict ( )
EnableWarning ( )
GetInstance ( ) : ZBlogException 获取单一实例
ParseError ( $type, $message, $file, $line ) 解析错误信息
ParseException ( $exception ) 解析异常信息
ParseShutdown ( $error ) 解析错误信息
ResumeErrorHook ( ) 恢复错误调度
SetErrorHook ( ) 设定错误处理函数
SuspendErrorHook ( ) 暂停错误调度
Trace ( $s )
__construct ( ) 构造函数,定义常见错误代码
__get ( $name ) : mixed 获取参数
get_code ( $file, $line ) : array 获取出错代码信息
possible_causes_of_the_error ( ) : string 得到可能的错误原因

Method Details

ClearErrorHook() public static method

清除注册的错误处理程序
public static ClearErrorHook ( )

DisableErrorHook() public static method

禁止错误调度
public static DisableErrorHook ( )

DisableStrict() public static method

恢复错误调度
public static DisableStrict ( )

DisableWarning() public static method

public static DisableWarning ( )

Display() public method

输出错误信息
public Display ( )

EnableErrorHook() public static method

启用错误调度
public static EnableErrorHook ( )

EnableStrict() public static method

public static EnableStrict ( )

EnableWarning() public static method

public static EnableWarning ( )

GetInstance() public static method

获取单一实例
public static GetInstance ( ) : ZBlogException
return ZBlogException

ParseError() public method

解析错误信息
public ParseError ( $type, $message, $file, $line )
$type
$message
$file
$line

ParseException() public method

解析异常信息
public ParseException ( $exception )
$exception

ParseShutdown() public method

解析错误信息
public ParseShutdown ( $error )
$error

ResumeErrorHook() public static method

恢复错误调度
public static ResumeErrorHook ( )

SetErrorHook() public static method

设定错误处理函数
public static SetErrorHook ( )

SuspendErrorHook() public static method

暂停错误调度
public static SuspendErrorHook ( )

Trace() public static method

public static Trace ( $s )

__construct() public method

构造函数,定义常见错误代码
public __construct ( )

__get() public method

获取参数
public __get ( $name ) : mixed
$name
return mixed

get_code() public method

获取出错代码信息
public get_code ( $file, $line ) : array
$file
$line
return array

possible_causes_of_the_error() public method

得到可能的错误原因

Property Details

$errarray public_oe property

public $errarray

$error_file public_oe static_oe property

public static $error_file

$error_id public_oe static_oe property

public static $error_id

$error_line public_oe static_oe property

public static $error_line

$file public_oe property

public $file

$isdisable public_oe static_oe property

public static $isdisable

$islogerror public_oe static_oe property

public static $islogerror

$isstrict public_oe static_oe property

public static $isstrict

$iswarning public_oe static_oe property

public static $iswarning

$line public_oe property

public $line

$message public_oe property

public $message

$messagefull public_oe property

public $messagefull

$type public_oe property

public $type