ValueError
classin packageklyn
public class ValueError extends UncheckedException:
└ ValueError

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)
Properties inherited from Exception: message
Properties inherited from Object: type
Constructors
Modifier and Type Member Description
public ValueError
ValueError(message as String = "Invalid value"):
Creates a value error.
Methods inherited from UncheckedException: toString
Methods inherited from Exception: toString
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml