NotNormalizableValueException
extends UnexpectedValueException
in package
UnexpectedValueException.
Tags
Table of Contents
Properties
- $currentType : mixed
- $expectedTypes : mixed
- $path : mixed
- $useMessageForUser : mixed
Methods
- canUseMessageForUser() : bool|null
- createForUnexpectedDataType() : self
- getCurrentType() : string|null
- getExpectedTypes() : array<string|int, string>|null
- getPath() : string|null
Properties
$currentType
private
mixed
$currentType
$expectedTypes
private
mixed
$expectedTypes
$path
private
mixed
$path
$useMessageForUser
private
mixed
$useMessageForUser
= false
Methods
canUseMessageForUser()
public
canUseMessageForUser() : bool|null
Return values
bool|nullcreateForUnexpectedDataType()
public
static createForUnexpectedDataType(string $message, mixed $data, array<string|int, mixed> $expectedTypes[, string $path = null ][, bool $useMessageForUser = false ][, int $code = 0 ][, Throwable $previous = null ]) : self
Parameters
- $message : string
- $data : mixed
- $expectedTypes : array<string|int, mixed>
- $path : string = null
- $useMessageForUser : bool = false
-
If the message passed to this exception is something that can be shown safely to your user. In other words, avoid catching other exceptions and passing their message directly to this class.
- $code : int = 0
- $previous : Throwable = null
Return values
selfgetCurrentType()
public
getCurrentType() : string|null
Return values
string|nullgetExpectedTypes()
public
getExpectedTypes() : array<string|int, string>|null
Return values
array<string|int, string>|nullgetPath()
public
getPath() : string|null