/// <summary> /// Checks if exception is because region doesn't exist. /// </summary> /// <param name="ex"></param> /// <returns></returns> private static bool IsRegionAbsent(DataCacheException ex) { return(ex.ErrorCode == DataCacheErrorCode.RegionDoesNotExist); }
/// <summary> /// Checks whether the execption thrown by the AppFabric client is safe to ignore or not. Sometime sommunication between /// the client and server can be slow for example in which case the client will throw na exception, but we would want to /// ignore it. /// </summary> /// <param name="ex"></param> /// <returns></returns> private bool IsSafeToIgnore(DataCacheException ex) { return ex.ErrorCode == DataCacheErrorCode.ConnectionTerminated || ex.ErrorCode == DataCacheErrorCode.RetryLater || ex.ErrorCode == DataCacheErrorCode.Timeout; }
private static bool IsRegionNotFoundException(DataCacheException ex) { // ErrorCode<ERRCA0005>:SubStatus<ES0001>:Region referred to does not exist. return ex.ErrorCode == 5; }
/// <summary> /// Checks whether the execption thrown by the AppFabric client is not critical. Sometime communication between /// the client and server can be slow for example in which case the client will throw an exception. /// </summary> /// <param name="ex"></param> /// <returns></returns> private static bool IsNotCritical(DataCacheException ex) { return(ex.ErrorCode == DataCacheErrorCode.ConnectionTerminated || ex.ErrorCode == DataCacheErrorCode.RetryLater || ex.ErrorCode == DataCacheErrorCode.Timeout); }
/// <summary> /// Checks whether the execption thrown by the AppFabric client is safe to ignore or not. Sometime sommunication between /// the client and server can be slow for example in which case the client will throw na exception, but we would want to /// ignore it. /// </summary> /// <param name="ex"></param> /// <returns></returns> private bool IsSafeToIgnore(DataCacheException ex) { return(ex.ErrorCode == DataCacheErrorCode.ConnectionTerminated || ex.ErrorCode == DataCacheErrorCode.RetryLater || ex.ErrorCode == DataCacheErrorCode.Timeout); }
private static bool IsRegionNotFoundException(DataCacheException ex) { // ErrorCode<ERRCA0005>:SubStatus<ES0001>:Region referred to does not exist. return(ex.ErrorCode == 5); }
/// <summary> /// Checks if exception is because region doesn't exist. /// </summary> /// <param name="ex"></param> /// <returns></returns> private static bool IsRegionAbsent(DataCacheException ex) { return ex.ErrorCode == DataCacheErrorCode.RegionDoesNotExist; }
/// <summary> /// Checks whether the execption thrown by the AppFabric client is not critical. Sometime communication between /// the client and server can be slow for example in which case the client will throw an exception. /// </summary> /// <param name="ex"></param> /// <returns></returns> private static bool IsNotCritical(DataCacheException ex) { return ex.ErrorCode == DataCacheErrorCode.ConnectionTerminated || ex.ErrorCode == DataCacheErrorCode.RetryLater || ex.ErrorCode == DataCacheErrorCode.Timeout; }
private static bool IsTransientError(DataCacheException ex) { return(transientErrorCodes.Contains(ex.ErrorCode)); }