TOMLWriteException
classin packageklyn.io.toml
public class TOMLWriteException extends ValueException
└ TOMLWriteException

Reports a Klyn value that cannot be represented by TOML.

TOML has no null value and only supports strings, signed 64-bit integers, binary64 numbers, booleans, temporal values, arrays and tables.

Example
import klyn.io.toml

try:
    TOML.stringify({"missing": null})
catch error as TOMLWriteException:
    print(error.message)
Inherited Properties
propertyInherited Properties from Exception: message
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public TOMLWriteException
TOMLWriteException(message as String = "Value cannot be represented as TOML")
Creates a TOML serialization error.
Inherited Methods
methodInherited Methods from UncheckedException: toString
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml