/
spirzen
/
it-code-examples
Обзор
Документация
Войти
/
spirzen
/
it-code-examples
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
examples/java/json-parser/JsonParseException.java
16 строк
568 B
Spirzen
Code migration pack
09 июн 2026, 01:41
09 июн 2026, 01:41
cebc284
Код
Авторство
О чём код?
final class JsonParseException extends RuntimeException { private final int position; private final int line; private final int column; JsonParseException(String message, int position, int line, int column) { super(String.format("%s at line %d, column %d (position %d)", message, line, column, position)); this.position = position; this.line = line; this.column = column; } public int getPosition() { return position; } public int getLine() { return line; } public int getColumn() { return column; } }