Module technology.sola.json
Class InvalidUnicodeCharacterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
technology.sola.json.tokenizer.exception.InvalidUnicodeCharacterException
- All Implemented Interfaces:
Serializable
,SolaJsonParsingError
@NullMarked
public class InvalidUnicodeCharacterException
extends RuntimeException
implements SolaJsonParsingError
Exception thrown when an invalid Unicode character is found during tokenization.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidUnicodeCharacterException
(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
-
InvalidUnicodeCharacterException
public InvalidUnicodeCharacterException(int line, int column) Creates a new instance of this exception.- Parameters:
line
- the line where the invalid character was foundcolumn
- the column where the invalid character was found
-
-
Method Details
-
getLine
public int getLine()- Specified by:
getLine
in interfaceSolaJsonParsingError
- Returns:
- the line where the syntax error began
-
getColumn
public int getColumn()- Specified by:
getColumn
in interfaceSolaJsonParsingError
- Returns:
- the column where the syntax error began
-