Package org.loxlylabs.nestedtext
Class NestedTextException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.loxlylabs.nestedtext.NestedTextException
- All Implemented Interfaces:
Serializable
The unified exception for all errors that occur within the NestedText library.
- See Also:
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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.
-