#[mixable] ValueError
Raised when the caller passes a value with an acceptable type but invalid contents, range, or meaning for the operation.
ValueError covers the options, modes, and settings that control how an
operation works. Invalid contents in what the operation exists to parse or
decode raise DataError, which is deliberately a sibling of
ValueError rather than a subtype: Int "abc" raises DataError, and
indent: -1 raises ValueError.
Inherits from: RuntimeError
Constructor
ValueError message
Builds an error reporting a value of the right type but unusable contents.
Parameters
| Name | Type | Description |
|---|---|---|
message |
Str |
description of the problem with the value |