public class BadValueException extends UncheckedException:
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)| Modifier and Type | Member | Description |
|---|---|---|
| public | BadValueExceptionBadValueException(message as String = "Bad value"): |
Creates an exception describing an invalid value conversion. |