Module technology.sola.json
Class StringNotClosedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
technology.sola.json.tokenizer.exception.StringNotClosedException
- All Implemented Interfaces:
Serializable,SolaJsonErrorWithLineAndColumn
@NullMarked
public class StringNotClosedException
extends RuntimeException
implements SolaJsonErrorWithLineAndColumn
Exception thrown when a string was discovered to be not closed during tokenization.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStringNotClosedException(int line, int column) Creates a new instance of this exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StringNotClosedException
public StringNotClosedException(int line, int column) Creates a new instance of this exception.- Parameters:
line- line where the unclosed string was startedcolumn- column where the unclosed string was started
-
-
Method Details
-
getLine
public int getLine()- Specified by:
getLinein interfaceSolaJsonErrorWithLineAndColumn- Returns:
- the line where the syntax error began
-
getColumn
public int getColumn()- Specified by:
getColumnin interfaceSolaJsonErrorWithLineAndColumn- Returns:
- the column where the syntax error began
-