org.sqlite.StmtException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqlite-javacpp Show documentation
Show all versions of sqlite-javacpp Show documentation
JDBC Driver for SQLite using JavaCPP
The newest version!
/*
* The author disclaims copyright to this source code. In place of
* a legal notice, here is a blessing:
*
* May you do good and not evil.
* May you find forgiveness for yourself and forgive others.
* May you share freely, never taking more than you give.
*/
package org.sqlite;
/**
* Prepared Statement related exception.
*/
public class StmtException extends SQLiteException {
private final transient Stmt stmt;
/**
* @param stmt a prepared statement (may be null)
* @param reason a description of the exception
* @param errCode a database vendor-specific exception code
*/
public StmtException(Stmt stmt, String reason, int errCode) {
super(stmt == null ? null : stmt.c, reason, errCode);
this.stmt = stmt;
}
public String getSql() {
if (stmt == null) {
return null;
}
return stmt.getSql();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy