Package org.tomlj

Interface TomlParseResult

All Superinterfaces:
TomlTable

public interface TomlParseResult extends TomlTable
The result from parsing a TOML document.

Parsing never throws for invalid input. Instead, every error is recorded in errors() and parsing continues with the next expression, so a document with errors still yields the values that could be parsed. Callers should check hasErrors() before relying on the result. A key/value pair containing a syntax error is omitted from the result.

  • Method Details

    • hasErrors

      default boolean hasErrors()
      true if the TOML document contained errors.
      Returns:
      true if the TOML document contained errors.
    • errors

      List<TomlParseError> errors()
      The errors that occurred during parsing.
      Returns:
      A list of errors.