Documentation

CastException extends CriticalError
in package
Uses DebugTraceableTrait

Cast Exceptions.

Tags
deprecated

use CodeIgniter\Entity\Exceptions\CastException instead.

codeCoverageIgnore

Table of Contents

$code  : int
Error code
__construct()  : mixed
Tweaks the exception's constructor to assign the file/line to where it is actually raised rather than were it is instantiated.
forInvalidJsonFormatException()  : mixed

Properties

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[, Throwable|null $previous = null ]) : mixed
Parameters
$message : string = ''
$code : int
$previous : Throwable|null = null
Return values
mixed

forInvalidJsonFormatException()

public static forInvalidJsonFormatException(int $error) : mixed
Parameters
$error : int
Return values
mixed

Search results