This PR introduces the Cursor interface that has methods to gather information about cursor information.
If a Cursor is passed to a ParsingException, the exception message is being appended with line and position information obtained from the Cursor at the moment when the exception is thrown.
Some internal things; such as private helper methods and some (supposedly internal) utility methods from com.electronwill.nightconfig.core.io.Utils had a new, @Nullable parameter added in order to pass a Cursor.
Documentation for added code is still missing.
Hocon tests are failing for a reason outside of this PR.
Needs in-depth testing and new unit tests.
Closes #105, Closes #165
This PR introduces the
Cursor
interface that has methods to gather information about cursor information. If aCursor
is passed to aParsingException
, the exception message is being appended with line and position information obtained from theCursor
at the moment when the exception is thrown.Some internal things; such as private helper methods and some (supposedly internal) utility methods from
com.electronwill.nightconfig.core.io.Utils
had a new,@Nullable
parameter added in order to pass aCursor
.Documentation for added code is still missing. Hocon tests are failing for a reason outside of this PR. Needs in-depth testing and new unit tests.