public class TOMLWriteException extends ValueException:
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.
import klyn.io.toml
try:
TOML.stringify({"missing": null})
catch error as TOMLWriteException:
print(error.message)| Modifier and Type | Member | Description |
|---|---|---|
| public | TOMLWriteExceptionTOMLWriteException(message as String = "Value cannot be represented as TOML"): |
Creates a TOML serialization error. |