CodeIgniter v4.5 API

EncryptionException extends RuntimeException
in package
implements ExceptionInterface uses DebugTraceableTrait

Encryption exception

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.
forAuthenticationFailed()  : static
Thrown during data decryption when a problem or error occurred.
forEncryptionFailed()  : static
Thrown during data encryption when a problem or error occurred.
forNeedsStarterKey()  : static
Thrown when no starter key is provided for the current encryption session.
forNoDriverRequested()  : static
Thrown when no driver is present in the active encryption session.
forNoHandlerAvailable()  : static
Thrown when the handler requested is not available.
forUnKnownHandler()  : static
Thrown when the handler requested is unknown.

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

forAuthenticationFailed()

Thrown during data decryption when a problem or error occurred.

public static forAuthenticationFailed() : static
Return values
static

forEncryptionFailed()

Thrown during data encryption when a problem or error occurred.

public static forEncryptionFailed() : static
Return values
static

forNeedsStarterKey()

Thrown when no starter key is provided for the current encryption session.

public static forNeedsStarterKey() : static
Return values
static

forNoDriverRequested()

Thrown when no driver is present in the active encryption session.

public static forNoDriverRequested() : static
Return values
static

forNoHandlerAvailable()

Thrown when the handler requested is not available.

public static forNoHandlerAvailable(string $handler) : static
Parameters
$handler : string
Return values
static

forUnKnownHandler()

Thrown when the handler requested is unknown.

public static forUnKnownHandler([string|null $driver = null ]) : static
Parameters
$driver : string|null = null
Return values
static

        
On this page

Search results