Package org.tomlj

Class TomlParseException

All Implemented Interfaces:
Serializable

public final class TomlParseException extends RuntimeException
Thrown when a document to be bound has parse errors.

Toml.parseAs(String, Class) and the other parseAs methods throw it, and bind nothing, if the document has any parse error. It holds every parse error, in the order of the document.

See Also:
  • Method Details

    • errors

      public List<TomlParseError> errors()
      The errors found.
      Returns:
      The parse errors, in the order of the document. Never empty.