Package org.tomlj

Class TomlBindException

All Implemented Interfaces:
Serializable

public final class TomlBindException extends RuntimeException
Thrown when a table or array cannot be bound to a Java type.

Binding does not stop at the first error: the exception is thrown once every value has been bound, and holds every error found, in document order. The exception behind each error that has one, such as an exception thrown by a converter, is added as a suppressed exception, so its stack trace is printed with this one.

See Also:
  • Method Details

    • errors

      public List<TomlBindError> errors()
      The errors found.
      Returns:
      The errors, in document order, with errors that have no position last. Never empty.