tech.ydb.jdbc.exception.YdbRetryableException 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.SQLRecoverableException;
import tech.ydb.core.Status;
import tech.ydb.core.UnexpectedResultException;
public class YdbRetryableException extends SQLRecoverableException implements YdbStatusable {
private static final long serialVersionUID = -7171306648623023924L;
private final Status status;
YdbRetryableException(String message, String sqlState, int code, UnexpectedResultException cause) {
super(message, sqlState, code, cause);
this.status = cause.getStatus();
}
@Override
public Status getStatus() {
return status;
}
}