Package com.clickhouse.client
Class ClickHouseTransactionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.clickhouse.client.ClickHouseException
-
- com.clickhouse.client.ClickHouseTransactionException
-
- All Implemented Interfaces:
Serializable
public class ClickHouseTransactionException extends ClickHouseException
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intERROR_INVALID_TRANSACTIONstatic intERROR_UNKNOWN_STATUS_OF_TRANSACTION-
Fields inherited from class com.clickhouse.client.ClickHouseException
ERROR_ABORTED, ERROR_CANCELLED, ERROR_NETWORK, ERROR_POCO, ERROR_SESSION_IS_LOCKED, ERROR_SESSION_NOT_FOUND, ERROR_TIMEOUT, ERROR_UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description ClickHouseTransactionException(int code, String message, ClickHouseTransaction tx)ClickHouseTransactionException(int code, String message, Throwable cause, ClickHouseTransaction tx)ClickHouseTransactionException(String message, ClickHouseTransaction tx)ClickHouseTransactionException(String message, Throwable cause, ClickHouseTransaction tx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClickHouseTransactiongetTransaction()-
Methods inherited from class com.clickhouse.client.ClickHouseException
buildErrorMessage, forCancellation, getErrorCode, isConnectTimedOut, of, of
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
ERROR_INVALID_TRANSACTION
public static final int ERROR_INVALID_TRANSACTION
- See Also:
- Constant Field Values
-
ERROR_UNKNOWN_STATUS_OF_TRANSACTION
public static final int ERROR_UNKNOWN_STATUS_OF_TRANSACTION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClickHouseTransactionException
public ClickHouseTransactionException(String message, ClickHouseTransaction tx)
-
ClickHouseTransactionException
public ClickHouseTransactionException(String message, Throwable cause, ClickHouseTransaction tx)
-
ClickHouseTransactionException
public ClickHouseTransactionException(int code, String message, Throwable cause, ClickHouseTransaction tx)
-
ClickHouseTransactionException
public ClickHouseTransactionException(int code, String message, ClickHouseTransaction tx)
-
-
Method Detail
-
getTransaction
public ClickHouseTransaction getTransaction()
-
-