Class InvalidCharacterException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
technology.sola.json.tokenizer.exception.InvalidCharacterException
All Implemented Interfaces:
Serializable, SolaJsonParsingError

@NullMarked public class InvalidCharacterException extends RuntimeException implements SolaJsonParsingError
Exception for when an invalid character is found during tokenization.
See Also:
  • Constructor Details

    • InvalidCharacterException

      public InvalidCharacterException(char invalidCharacter, int line, int column)
      Creates a new instance of this exception.
      Parameters:
      invalidCharacter - the invalid character
      line - line where the invalid character was found
      column - column where the invalid character was found
  • Method Details

    • getInvalidCharacter

      public char getInvalidCharacter()
      Returns:
      the invalid character
    • getLine

      public int getLine()
      Specified by:
      getLine in interface SolaJsonParsingError
      Returns:
      the line where the syntax error began
    • getColumn

      public int getColumn()
      Specified by:
      getColumn in interface SolaJsonParsingError
      Returns:
      the column where the syntax error began