CodeIgniter v4.6 API

CacheException extends RuntimeException
in package
uses DebugTraceableTrait

Exception thrown if an error which can only be found on runtime occurs.

Table of Contents

Methods

__construct()  : mixed
Tweaks the exception's constructor to assign the file/line to where it is actually raised rather than were it is instantiated.
forHandlerNotFound()  : static
Thrown when specified handler was not found.
forInvalidHandlers()  : static
Thrown when an unrecognized handler is used.
forNoBackup()  : static
Thrown when no backup handler is setup in config.
forUnableToWrite()  : static
Thrown when handler has no permission to write cache.

Methods

__construct()

Tweaks the exception's constructor to assign the file/line to where it is actually raised rather than were it is instantiated.

public final __construct([string $message = '' ][, int $code = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
$message : string = ''
$code : int = 0
$previous : Throwable|null = null

forHandlerNotFound()

Thrown when specified handler was not found.

public static forHandlerNotFound() : static
Return values
static

forInvalidHandlers()

Thrown when an unrecognized handler is used.

public static forInvalidHandlers() : static
Return values
static

forNoBackup()

Thrown when no backup handler is setup in config.

public static forNoBackup() : static
Return values
static

forUnableToWrite()

Thrown when handler has no permission to write cache.

public static forUnableToWrite(string $path) : static
Parameters
$path : string
Return values
static

        
On this page

Search results