TypeError
An error raised when a value does not match the type expected by an operation, function argument, or field.
Constructor
TypeError(index: integer, value: any, expected_type: string, value_name: ( string | nil ), function_name: ( string | nil )): TypeErrorFields
| Name | Type | Description |
|---|---|---|
index | integer | |
value | any | |
value_name | string | nil | |
function_name | string | nil | |
expected_type | string | The type that was expected. |
received_type | string | The type that was actually received. |