Class InvalidParameterException
Used when a passed parameter or action parameter type declaration is missing or invalid.
Property Summary
-
$attributes protected
arrayArray of attributes that are passed in from the constructor, and made available in the view when a development error is displayed.
-
$defaultCode protected
intDefault exception code
-
$messageTemplate protected
stringTemplate string that has attributes sprintf()'ed into it.
-
$templates protected
array<string, string>
Method Summary
-
__construct() public
Switches message template based on
templatekey in message array. -
getAttributes() public
Get the passed in attributes
Method Detail
__construct() ¶ public
__construct(array|string $message = '', int|null $code = null, Throwable|null $previous = null)
Switches message template based on template key in message array.
Parameters
-
array|string$message optional Either the string of the error message, or an array of attributes that are made available in the view, and sprintf()'d into Exception::$messageTemplate
-
int|null$code optional The error code
-
Throwable|null$previous optional the previous exception.
Property Detail
$attributes ¶ protected
Array of attributes that are passed in from the constructor, and made available in the view when a development error is displayed.
Type
array