Class NestedTextException

All Implemented Interfaces:
Serializable

public class NestedTextException extends RuntimeException
The unified exception for all errors that occur within the NestedText library.
See Also:
  • Method Details

    • getLine

      public int getLine()
      Gets the line number where the parsing error occurred.
      Returns:
      The 1-based line number, or -1 if the error is not related to parsing (e.g., a serialization error).
    • getColumn

      public int getColumn()
      Gets the column number where the parsing error occurred.
      Returns:
      The 1-based column number, or 0 if the column was not precisely tracked, or -1 if the error is not related to parsing.