code: private JsonParserException createParseException(Exception e, String message, boolean tokenPos) {
      if (tokenPos)
        return new JsonParserException(e, message + " on line " + tokenLinePos + ", char " + tokenCharPos,
            tokenLinePos, tokenCharPos, tokenCharOffset);
      else {
        int charPos = Math.max(1, index - rowPos - utf8adjust);
        return new JsonParserException(e, message + " on line " + linePos + ", char " + charPos, linePos, charPos,
            index + charOffset);
      }
    }
docs: Creates a {@link JsonParserException} and fills it from the current line and char position.