ThinkPHP5


think\exception\DbException
library\think\exception\DbException.php at line 19

Class DbException

\Exception
└─Exception
└─DbException
All Known Subclasses:
think\db\exception\BindParamException think\db\exception\DataNotFoundException think\db\exception\ModelNotFoundException PDOException

public class DbException
extends Exception

Database相关异常处理类


Constructor Summary
void

__construct(string message, array config, string sql, int code)

DbException constructor.

Methods inherited from think\Exception
getData, setData

Constructor Detail

library\think\exception\DbException.php at line 28

__construct

public void __construct(string message, array config, string sql, int code)

DbException constructor.


ThinkPHP5