Documentation

TypeCastingFailed extends RuntimeException
in package
implements SerializationFailed

FinalYes

Table of Contents

Interfaces

SerializationFailed

Properties

$info  : TypeCastingInfo|null

Methods

__construct()  : mixed
dueToInvalidValue()  : self
dueToNotNullableType()  : self
dueToUndefinedValue()  : self
format()  : string

Properties

Methods

__construct()

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

dueToInvalidValue()

public static dueToInvalidValue(mixed $value, string $type[, Throwable|null $previous = null ][, TypeCastingInfo|null $info = null ]) : self
Parameters
$value : mixed
$type : string
$previous : Throwable|null = null
$info : TypeCastingInfo|null = null
Return values
self

dueToNotNullableType()

public static dueToNotNullableType(string $type[, Throwable|null $exception = null ][, TypeCastingInfo|null $info = null ]) : self
Parameters
$type : string
$exception : Throwable|null = null
$info : TypeCastingInfo|null = null
Return values
self

        
On this page

Search results