tech.ydb.jdbc.exception.YdbSQLException Maven / Gradle / Ivy
package tech.ydb.jdbc.exception;
import java.sql.SQLException;
import tech.ydb.core.Status;
import tech.ydb.core.UnexpectedResultException;
public class YdbSQLException extends SQLException implements YdbStatusable {
    private static final long serialVersionUID = 6204553083196091739L;
    private final Status status;
    YdbSQLException(String message, String sqlState, int code, UnexpectedResultException cause) {
        super(message, sqlState, code, cause);
        this.status = cause.getStatus();
    }
    @Override
    public Status getStatus() {
        return status;
    }
}
    © 2015 - 2025 Weber Informatics LLC | Privacy Policy