UrlNormalizerRedirectException
API reference › yii › web › UrlNormalizerRedirectException
UrlNormalizerRedirectException represents an information for redirection which should be performed during the URL normalization.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$scheme | bool| | The URI scheme to use in the generated URL for redirection Default: null. | UrlNormalizerRedirectException |
$statusCode | int | The HTTP status code Default: null. | UrlNormalizerRedirectException |
$url | array| | The parameter to be used to generate a valid URL for redirection Default: null. | UrlNormalizerRedirectException |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | UrlNormalizerRedirectException | |
getName() | yii\ |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(array|string $url, int $statusCode = 302, bool|string $scheme = false, string|null $message = null, int $code = 0, Throwable|null $previous = null)Parameters
| Parameter | Type | Description |
|---|---|---|
$url | array| | The parameter to be used to generate a valid URL for redirection. This will be used as first parameter for Url::to() |
$statusCode | int | HTTP status code used for redirection |
$scheme | bool| | The URI scheme to use in the generated URL for redirection. This will be used as second parameter for Url::to() |
$message | string| | The error message |
$code | int | The error code |
$previous | Throwable| | The previous exception used for the exception chaining |