Driver/SpannerRecoveryStrategy.cs
/// <summary>
/// Determines whether the specified exception is a transient exception.
/// </summary>
/// <param name="toCheck">The exception to check.</param>
/// <returns>
/// true if the exception is a transient exception and can be retried, false otherwise. The empty implementation
/// returns false.
/// </returns>
Determines whether the specified exception is a transient exception.
Determines whether the specified exception is a transient exception .
protected override bool IsTransientException(Exception toCheck)
		{
			if(toCheck is TimeoutException)
			{
				return true;
			}
			var toCheckAsSpannerException = toCheck as SpannerException;
			if(toCheckAsSpannerException == null)
			{
				return false;
			}
			return toCheckAsSpannerException.IsTransientSpannerFault();
		}
protected override bool IsTransientException ( Exception toCheck ) { if ( toCheck is TimeoutException ) { return true ; } var toCheckAsSpannerException = toCheck as SpannerException ; if ( toCheckAsSpannerException == null ) { return false ; } return toCheckAsSpannerException . IsTransientSpannerFault ( ) ; }
Determines whether the specified exception is a transient exception.
Determines whether the specified exception is a transient exception .
true if the exception is a transient exception and can be retried, false otherwise. The empty implementation
returns false.
true if the exception is a transient exception and can be retried false otherwise . The empty implementation returns false .
toCheck
Exception
The exception to check.
The exception to check .