All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nutz.json.JsonException Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy