未找到数据

未找到指定数据时触发该错误
属性
命名空间 fize\db\exception
类名 DataNotFoundException
父类 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 = ""

)
参数:
名称 说明
message 错误信息
code 错误码
sql SQL语句

getSql()

返回出错的相关SQL语句

public function getSql () : string

__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 ()