org.sqlite.ConnException 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;
/**
* Connection related exception.
*/
public class ConnException extends SQLiteException {
private final transient Conn c;
/**
* @param c a connection (may be null)
* @param reason a description of the exception
* @param errCode a database vendor-specific exception code
*/
public ConnException(Conn c, String reason, int errCode) {
super(c, reason, errCode);
this.c = c;
}
public String getFilename() {
if (c == null) {
return null;
}
return c.getFilename();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy