Exception
(PHP 5, PHP 7)
类摘要
Exception
{
public __construct
([
string $message = ""
[,
int $code = 0
[,
Throwable $previous = NULL
]]] )
final public getCode
(
void
) :
int
final public getFile
(
void
) :
string
final public getLine
(
void
) :
int
final private __clone
(
void
) :
void
}
属性
- message
-
异常消息内容
- code
-
异常代码
- file
-
抛出异常的文件名
- line
-
抛出异常在该文件中的行号
Table of Contents