extends |
UnexpectedValueException |
|---|
Thrown when a server-side parameter source — a stored value, a composition proposal, a catalog default — fills a slot with a value that is not of the slot's declared type.
Deliberately not an HTTP exception. Laravel does not report those, and this is a fault in code or in stored data that nobody on the calling end can fix, so it has to reach the log. A value the request supplies is the caller's fault and answers with {@see InvalidSlotValueException} instead.
| Methods | ||
|---|---|---|
public
|
__construct(class-string $source, string $slot, ParameterType $type, string $expected, mixed $value)
|
# |
| Methods inherited from Exception |
|---|
__wakeup(), getMessage(), getCode(), getFile(), getLine(), getTrace(), getPrevious(), getTraceAsString(), __toString() |
| Properties | |||
|---|---|---|---|
public
readonly
|
class-string
|
$source
|
# |
public
readonly
|
string
|
$slot
|
# |
public
readonly
|
ParameterType
|
$type
|
# |