tech.ydb.jdbc.exception.YdbUnavailbaleException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-jdbc-driver Show documentation
Show all versions of ydb-jdbc-driver Show documentation
JDBC Driver over YDB Java SDK
package tech.ydb.jdbc.exception;
import java.sql.SQLTransientConnectionException;
import tech.ydb.core.Status;
import tech.ydb.core.UnexpectedResultException;
/**
*
* @author Aleksandr Gorshenin
*/
public class YdbUnavailbaleException extends SQLTransientConnectionException implements YdbStatusable {
private static final long serialVersionUID = 7162301155514557562L;
private final Status status;
YdbUnavailbaleException(String message, String sqlState, int code, UnexpectedResultException cause) {
super(message, sqlState, code, cause);
this.status = cause.getStatus();
}
@Override
public Status getStatus() {
return status;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy