CacheException
extends RuntimeException
in package
implements
ExceptionInterface
uses
DebugTraceableTrait
CacheException
Table of Contents
Interfaces
- ExceptionInterface
- Provides a domain-level interface for broad capture of all framework-related exceptions.
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() : CacheException
- Thrown when specified handler was not found.
- forInvalidHandlers() : CacheException
- Thrown when an unrecognized handler is used.
- forNoBackup() : CacheException
- Thrown when no backup handler is setup in config.
- forUnableToWrite() : CacheException
- 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() : CacheException
Return values
CacheExceptionforInvalidHandlers()
Thrown when an unrecognized handler is used.
public
static forInvalidHandlers() : CacheException
Return values
CacheExceptionforNoBackup()
Thrown when no backup handler is setup in config.
public
static forNoBackup() : CacheException
Return values
CacheExceptionforUnableToWrite()
Thrown when handler has no permission to write cache.
public
static forUnableToWrite(string $path) : CacheException
Parameters
- $path : string