ValueException
class in package klyn

    public class ValueException extends UncheckedException:

Object
└ Exception
└ UncheckedException
└ ValueException

Exception raised when a value is invalid for the requested operation or cannot be converted to the requested Klyn type.

Typical examples are negative dimensions, invalid mathematical domains, or an invalid textual representation passed to a primitive constructor.

Example

    try:
    Application.range(0, 10, 0)
    catch exc as ValueException:
    println(exc.message)

Inherited Properties
property Inherited Properties from Exception: message
property Inherited Properties from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | ValueException `ValueException(message as String = "Invalid value"):` | Creates an exception describing an invalid value.

Inherited Methods
method Inherited Methods from UncheckedException: toString
method Inherited Methods from Exception: toString
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml