All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.ydb.jdbc.exception.YdbTimeoutException Maven / Gradle / Ivy

There is a newer version: 2.3.5
Show newest version
package tech.ydb.jdbc.exception;

import java.sql.SQLTimeoutException;

import tech.ydb.core.Status;
import tech.ydb.core.UnexpectedResultException;

/**
 *
 * @author Aleksandr Gorshenin
 */
public class YdbTimeoutException extends SQLTimeoutException implements YdbStatusable {
    private static final long serialVersionUID = -6309565506198809222L;

    private final Status status;

    YdbTimeoutException(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