ValueError
An error raised when a value has the correct type but is otherwise invalid or out of the accepted range for an operation.
Constructor
ValueError(value: any, message: ( string | nil )): ValueErrorFields
| Name | Type | Description |
|---|---|---|
message | string | nil | Optional explanation of why the value is invalid. |
value | any | The invalid value. |