Class ThinkException

Description

ThinkPHP系统异常基类

Located in /Think/Exception/ThinkException.class.php (line 24)

Exception
   |
   --ThinkException
Method Summary
ThinkException __construct (string $message, [ $code = 0], [ $extra = false])
array __toString ()
Variables

Inherited Variables

Inherited from Exception (Internal Class)

$code
$file
$line
$message
$string
$trace
Methods
Constructor __construct (line 49)

架构函数

  • access: public
ThinkException __construct (string $message, [ $code = 0], [ $extra = false])
  • string $message: 异常信息
  • $code
  • $extra

Redefinition of:
Exception::constructor __construct ( [$message = ], [$code = ] )
__toString (line 67)

异常输出 所有异常处理类均通过__toString方法输出错误

每次异常都会写入系统日志 该方法可以被子类重载

  • access: public
array __toString ()

Redefinition of:
Exception::__toString ( )

Inherited Methods

Inherited From Exception (Internal Class)

constructor __construct ( [$message = ], [$code = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )

Documentation generated on Thu, 27 Mar 2008 08:20:57 +0000 by 塞北的雪