驱动错误¶
由于驱动的错误或者不执行相关特性时触发该错误
| 属性 | 值 |
|---|---|
| 命名空间 | fize\db\exception |
| 类名 | DriverException |
| 父类 | fize\db\exception\Exception |
| 实现接口 | Throwable |
| 方法: |
|---|
| 方法名 | 说明 |
|---|---|
| __construct() | Exception constructor. |
| getSql() | 返回出错的相关SQL语句 |
| __wakeup() | |
| getMessage() | |
| getCode() | |
| getFile() | |
| getLine() | |
| getTrace() | |
| getPrevious() | |
| getTraceAsString() | |
| __toString() |
方法¶
__construct()¶
Exception constructor.
public function __construct (
string $message = "",
int $code = 0,
string $sql = ""
)
| 参数: |
|
|---|
__wakeup()¶
public function __wakeup ()
getMessage()¶
final public function getMessage ()
getCode()¶
final public function getCode ()
getFile()¶
final public function getFile ()
getLine()¶
final public function getLine ()
getTrace()¶
final public function getTrace ()
getPrevious()¶
final public function getPrevious ()
getTraceAsString()¶
final public function getTraceAsString ()
__toString()¶
public function __toString ()