Exception

(PHP 5, PHP 7)

简介

Exception是所有异常的基类。

类摘要

Exception{protected string $message ; protected int $code ; protected string $file ; protected int $line ;  public __construct([ string $message = "" [, int $code = 0 [, Throwable $previous = NULL ]]])final public getMessage(void): string final public getPrevious(void): Throwable final public getCode(void): int final public getFile(void): string final public getLine(void): int final public getTrace(void): array final public getTraceAsString(void): string public __toString(void): string final private __clone(void): void}

属性

message

异常消息内容

code

异常代码

file

抛出异常的文件名

line

抛出异常在该文件中的行号