Class yii\base\Exception

继承yii\base\Exception » Exception
子类yii\base\InvalidConfigException, yii\base\InvalidRouteException, yii\base\NotSupportedException, yii\base\UnknownClassException, yii\base\UnknownPropertyException, yii\base\UserException, yii\console\Exception, yii\console\UnknownCommandException, yii\db\Exception, yii\db\IntegrityException, yii\db\StaleObjectException, yii\di\NotInstantiableException, yii\log\LogRuntimeException, yii\web\BadRequestHttpException, yii\web\ConflictHttpException, yii\web\ForbiddenHttpException, yii\web\GoneHttpException, yii\web\HeadersAlreadySentException, yii\web\HttpException, yii\web\MethodNotAllowedHttpException, yii\web\NotAcceptableHttpException, yii\web\NotFoundHttpException, yii\web\RangeNotSatisfiableHttpException, yii\web\ServerErrorHttpException, yii\web\TooManyRequestsHttpException, yii\web\UnauthorizedHttpException, yii\web\UnprocessableEntityHttpException, yii\web\UnsupportedMediaTypeHttpException, yii\web\UrlNormalizerRedirectException
可用自版本2.0
源代码 https://github.com/yiisoft/yii2/blob/master/framework/base/Exception.php

Exception 表示所有用途的通用异常.

有关 Exception 的更多详细信息和使用信息, 请参阅 权威指南 - 请求处理 - 错误处理(Handling Errors).

公共方法

隐藏继承的方法

方法描述定义在
getName() yii\base\Exception

方法详情

getName() public 方法

public string getName ( )
return string

该异常的用户友好的名字.