CodeIgniter v4.5 API

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

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

        
On this page

Search results