Class yii\web\UrlNormalizerRedirectException
Inheritance | yii\web\UrlNormalizerRedirectException » yii\base\Exception » Exception |
---|---|
Available since version | 2.0.10 |
UrlNormalizerRedirectException represents an information for redirection which should be performed during the URL normalization.
Public Properties
隐藏继承的属性 Hide inherited properties
属性Property | 类型 Type | 简介 Description | 定义在 Defined By |
---|---|---|---|
$scheme | boolean|string | The URI scheme to use in the generated URL for redirection | yii\web\UrlNormalizerRedirectException |
$statusCode | integer | The HTTP status code | yii\web\UrlNormalizerRedirectException |
$url | array|string | The parameter to be used to generate a valid URL for redirection | yii\web\UrlNormalizerRedirectException |
Public Methods
隐藏继承的方法 Hide inherited methods
方法 Method | 简介 Description | 定义在 Defined By |
---|---|---|
__construct() | yii\web\UrlNormalizerRedirectException | |
getName() | yii\base\Exception |
属性详情 Property Details
The URI scheme to use in the generated URL for redirection
请参阅 [[yii\helpers\Url::to()]].
The HTTP status code
The parameter to be used to generate a valid URL for redirection
请参阅 [[yii\helpers\Url::to()]].
方法详情 Method Details
public void __construct ( $url, $statusCode = 302, $scheme = false, $message = null, $code = 0, Exception $previous = null ) | ||
$url | array|string | The parameter to be used to generate a valid URL for redirection. This will be used as first parameter for yii\helpers\Url::to() |
$statusCode | integer | HTTP status code used for redirection |
$scheme | boolean|string | The URI scheme to use in the generated URL for redirection. This will be used as second parameter for yii\helpers\Url::to() |
$message | string | The error message |
$code | integer | The error code |
$previous | Exception | The previous exception used for the exception chaining |