TOMLParseException
classin packageklyn.io.toml
public class TOMLParseException extends SyntaxError:
└ TOMLParseException

Reports invalid TOML syntax with its one-based source position.

Example
import klyn.io.toml

try:
TOML.parse("name = ")
catch error as TOMLParseException:
print(error.line, error.column, error.message)
Properties
Modifier and Type Member Description
public readonly property column
column as Int:
One-based column where parsing failed.
public readonly property line
line as Int:
One-based line where parsing failed.
Inherited Properties
propertyInherited Properties from Exception: message
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public TOMLParseException
TOMLParseException(message as String, line as Int = 1, column as Int = 1):
Creates a TOML syntax error.
Inherited Methods
methodInherited Methods from Exception: toString
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toString, toXml