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

one.xingyi.sqlAndParamsTest.MalformedSqlException Maven / Gradle / Ivy

There is a newer version: 1.5.9
Show newest version
package one.xingyi.sqlAndParamsTest;

import net.sf.jsqlparser.JSQLParserException;

public class MalformedSqlException extends RuntimeException {
    public final String sql;

    public static MalformedSqlException emptySql() {
        return new MalformedSqlException("Empty sql", "");
    }

    private MalformedSqlException(String message, String sql) {
        super(message);
        this.sql = sql;
    }

    public MalformedSqlException(String sql, JSQLParserException e) {
        super("Malformed SQL:\n" + sql, e);
        this.sql = sql;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy