PHP Class ThinkException, thinksns

Author: liu21st ([email protected])
Inheritance: extends Exception
显示文件 Open project: medz/thinksns-4

Public Methods

Method Description
__construct ( string $message, $code, $extra = false ) +---------------------------------------------------------- 架构函数 +---------------------------------------------------------- +----------------------------------------------------------
__toString ( ) : array +---------------------------------------------------------- 异常输出 所有异常处理类均通过__toString方法输出错误 每次异常都会写入系统知识 该方法可以被子类重载 +---------------------------------------------------------- +----------------------------------------------------------

Method Details

__construct() public method

+---------------------------------------------------------- 架构函数 +---------------------------------------------------------- +----------------------------------------------------------
public __construct ( string $message, $code, $extra = false )
$message string 异常信息 +----------------------------------------------------------

__toString() public method

+---------------------------------------------------------- 异常输出 所有异常处理类均通过__toString方法输出错误 每次异常都会写入系统知识 该方法可以被子类重载 +---------------------------------------------------------- +----------------------------------------------------------
public __toString ( ) : array
return array +----------------------------------------------------------