Class ClickHouseTransientExceptionDetector
- Namespace
- LinqToDB.DataProvider.ClickHouse
- Assembly
- linq2db.dll
Detects the exceptions caused by transient failures. Currently handles only:
- Octonica client ClickHouseException with codes ClickHouseErrorCodes.InvalidConnectionState, ClickHouseErrorCodes.ConnectionClosed, ClickHouseErrorCodes.NetworkError
public static class ClickHouseTransientExceptionDetector
- Inheritance
-
ClickHouseTransientExceptionDetector
Methods
IsHandled(Exception, out IEnumerable<int>?)
public static bool IsHandled(Exception ex, out IEnumerable<int>? errorNumbers)
Parameters
ex
ExceptionerrorNumbers
IEnumerable<int>
Returns
ShouldRetryOn(Exception)
public static bool ShouldRetryOn(Exception ex)
Parameters
ex
Exception