com.dieselpoint.norm.DbException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of norm Show documentation
Show all versions of norm Show documentation
An extremely lightweight data access layer over JDBC
package com.dieselpoint.norm;
@SuppressWarnings("serial")
/**
* Generic unchecked database exception.
*/
public class DbException extends RuntimeException {
private String sql;
public DbException() {}
public DbException(String msg) {
super(msg);
}
public DbException(Throwable t) {
super(t);
}
public DbException(String msg, Throwable t) {
super(msg, t);
}
public void setSql(String sql) {
this.sql = sql;
}
public String getSql() {
return sql;
}
}