Class JsonParseException

    • Constructor Detail

      • JsonParseException

        public JsonParseException​(String message,
                                  int line,
                                  int linePos)
        Constructs a new exception. The line number and character number will be appended to the message.
        Parameters:
        message - the error message
        line - the line number (first line is 1)
        linePos - the character number in the line (first character is 1)
      • JsonParseException

        public JsonParseException​(String message,
                                  JsonParseException cause)
        Constructs a new message with another JsonParseException as the cause. The cause cannot be null. This constructor does not append the line number and character number to the message.
        Parameters:
        message - the message
        cause - the cause (not null)
    • Method Detail

      • getLine

        public int getLine()
        Returns the line number. The first line is 1.
        Returns:
        the line number (first line is 1)
      • getLinePos

        public int getLinePos()
        Returns the character number in the line. The first character is 1.
        Returns:
        the character number in the line (first character is 1)