HumHub Documentation (unofficial)

UrlNormalizerRedirectException extends Exception
in package

UrlNormalizerRedirectException represents an information for redirection which should be performed during the URL normalization.

Tags
author

Robert Korulczyk robert@korulczyk.pl

since
2.0.10

Table of Contents

Properties

$scheme  : bool|string
$statusCode  : int
$url  : array<string|int, mixed>|string

Methods

__construct()  : mixed
getName()  : string

Properties

$url

public array<string|int, mixed>|string $url

the parameter to be used to generate a valid URL for redirection

Tags
see
Url::to()

Methods

__construct()

public __construct(array<string|int, mixed>|string $url[, int $statusCode = 302 ][, bool|string $scheme = false ][, string|null $message = null ][, int $code = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
$url : array<string|int, mixed>|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 : int = 302

HTTP status code used for redirection

$scheme : bool|string = false

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 = null

the error message

$code : int = 0

the error code

$previous : Throwable|null = null

the previous exception used for the exception chaining

getName()

public getName() : string
Return values
string

the user-friendly name of this exception


        
On this page

Search results