public class ValueError extends UncheckedException:
Exception raised when a value has the correct static type but an invalid runtime value for the requested operation.
Typical examples are negative dimensions, invalid mathematical domains, or an invalid range step.
@param message Description of the invalid value.
try: Application.range(0, 10, 0) catch exc as ValueError: println(exc.message)
| Modifier and Type | Member | Description |
|---|---|---|
| public | ValueErrorValueError(message as String = "Invalid value"): |
Creates a value error. |