com.clickhouse.client.ClickHouseTransactionException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickhouse-client Show documentation
Show all versions of clickhouse-client Show documentation
Unified Java client for ClickHouse
package com.clickhouse.client;
public class ClickHouseTransactionException extends ClickHouseException {
public static final int ERROR_INVALID_TRANSACTION = 649;
public static final int ERROR_UNKNOWN_STATUS_OF_TRANSACTION = 659;
private final ClickHouseTransaction tx;
public ClickHouseTransactionException(String message, ClickHouseTransaction tx) {
this(ERROR_INVALID_TRANSACTION, message, tx);
}
public ClickHouseTransactionException(String message, Throwable cause, ClickHouseTransaction tx) {
this(ERROR_INVALID_TRANSACTION, message, cause, tx);
}
public ClickHouseTransactionException(int code, String message, Throwable cause, ClickHouseTransaction tx) {
super(code, message, cause);
this.tx = tx;
}
public ClickHouseTransactionException(int code, String message, ClickHouseTransaction tx) {
super(code, message, tx.getServer());
this.tx = tx;
}
public ClickHouseTransaction getTransaction() {
return tx;
}
}