BadValueException
classin packageklyn
public class BadValueException extends 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.

Example
try:
value = Int("not-an-int")
catch exc as BadValueException:
println(exc.message)
Inherited Properties
propertyInherited Properties from Exception: message
propertyInherited Properties 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.
Inherited Methods
methodInherited Methods from UncheckedException: toString
methodInherited Methods from Exception: toString
methodInherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml