BadValueException
class in package klyn

    public class BadValueException extends UncheckedException:

Object
└ Exception
└ UncheckedException
└ BadValueException

Exception raised when a textual or scalar value cannot be converted to the requested Klyn type.

This exception is used by primitive constructors such as `Int(String)`, `Double(String)` or `Boolean(String)` when the input does not follow the expected lexical format.

@param message Description of the invalid value.

    try:
    value = Int("not-an-int")
    catch exc as BadValueException:
    println(exc.message)

Properties inherited from Exception: message
Properties inherited from Object: type
Constructors

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

Methods inherited from UncheckedException: toString
Methods inherited from Exception: toString
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml