Class yii\web\UrlNormalizerRedirectException
Inheritance | yii\web\UrlNormalizerRedirectException » yii\base\Exception » Exception |
---|---|
Available since version | 2.0.10 |
Source Code | https://github.com/yiisoft/yii2/blob/master/framework/web/UrlNormalizerRedirectException.php |
UrlNormalizerRedirectException represents an information for redirection which should be performed during the URL normalization.
Public 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
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
See also yii\helpers\Url::to().
The parameter to be used to generate a valid URL for redirection
See also yii\helpers\Url::to().
Method Details
public void __construct ( $url, $statusCode = 302, $scheme = false, $message = null, $code = 0, $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|null |
The error message |
$code | integer |
The error code |
$previous | Throwable|null |
The previous exception used for the exception chaining |
public function __construct($url, $statusCode = 302, $scheme = false, $message = null, $code = 0, $previous = null)
{
$this->url = $url;
$this->scheme = $scheme;
$this->statusCode = $statusCode;
parent::__construct((string)$message, $code, $previous);
}
Defined in: yii\base\Exception::getName()
public string getName ( ) | ||
return | string |
The user-friendly name of this exception |
---|
public function getName()
{
return 'Exception';
}