继承yii\web\NotFoundHttpException » yii\web\HttpException » yii\base\UserException » yii\base\Exception » Exception
可用自版本2.0

NotFoundHttpException represents a "Not Found" HTTP exception with status code 404.

公共方法

隐藏继承方法

方法描述定义在
__construct() Constructor. yii\web\NotFoundHttpException

方法详情

__construct() public 方法

Constructor.

public void __construct ( $message null, $code 0, Exception $previous null )
$message string

Error message

$code integer

Error code

$previous Exception

The previous exception used for the exception chaining.