public class TOMLParseException extends SyntaxError:
Reports invalid TOML syntax with its one-based source position.
import klyn.io.toml
try:
TOML.parse("name = ")
catch error as TOMLParseException:
print(error.line, error.column, error.message)| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | columncolumn as Int: |
One-based column where parsing failed. |
| public readonly property | lineline as Int: |
One-based line where parsing failed. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | TOMLParseExceptionTOMLParseException(message as String, line as Int = 1, column as Int = 1): |
Creates a TOML syntax error. |