org.nutz.json.JsonException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutz Show documentation
Show all versions of nutz Show documentation
Nutz, which is a collections of lightweight frameworks, each of them can be used independently
package org.nutz.json;
@SuppressWarnings("serial")
public class JsonException extends RuntimeException {
public JsonException(Throwable cause) {
super(cause);
}
public JsonException(String msg) {
super(msg);
}
public JsonException(String message, Throwable cause) {
super(message, cause);
}
public JsonException(int row, int col, char cursor, String message) {
super(String.format("!Json syntax error nearby [row:%d,col:%d char '%c'], reason: '%s'",
row,
col,
cursor,
message));
}
public JsonException(int row, int col, char cursor, String message, Throwable cause) {
super(String.format("!Json syntax error nearby [row:%d,col:%d char '%c'], reason: '%s'",
row,
col,
cursor,
message), cause);
}
}