RedirectException
extends Exception
in package
implements
ResponsableInterface, HTTPExceptionInterface
RedirectException
Table of Contents
Interfaces
- ResponsableInterface
- HTTPExceptionInterface
- Interface for Exceptions that has exception code as HTTP status code.
Properties
- $code : int
- HTTP status code for redirects
- $response : ResponseInterface|null
Methods
- __construct() : mixed
- getResponse() : ResponseInterface
Properties
$code
HTTP status code for redirects
protected
int
$code
= 302
$response
protected
ResponseInterface|null
$response
= null
Methods
__construct()
public
__construct([ResponseInterface|string $message = '' ][, int $code = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
- $message : ResponseInterface|string = ''
-
Response object or a string containing a relative URI.
- $code : int = 0
-
HTTP status code to redirect if $message is a string.
- $previous : Throwable|null = null
getResponse()
public
getResponse() : ResponseInterface