0 追蹤者

類別 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 的更多詳細資訊和使用方式,請參閱處理錯誤的指南文章

公共方法

隱藏繼承的方法

方法 描述 定義於
getName() yii\base\Exception

方法詳情

隱藏繼承的方法

getName() public method

public string getName ( )
回傳 string

此例外的使用者友善名稱

                public function getName()
{
    return 'Exception';
}