/// <summary>
 /// Handles errors from the GSM operation after the LSM operations.
 /// </summary>
 /// <param name="result">Operation result.</param>
 public override void HandleDoGlobalExecuteError(IStoreResults result)
 {
     if (_ssmCurrent == null)
     {
         // Possible errors are:
         // StoreResult.StoreVersionMismatch
         // StoreResult.MissingParametersForStoredProcedure
         throw StoreOperationErrorHandler.OnShardMapManagerErrorGlobal(
                   result,
                   null,
                   this.OperationName,
                   StoreOperationRequestBuilder.SpGetAllShardMapsGlobal);
     }
     else
     {
         if (result.Result != StoreResult.ShardMapDoesNotExist)
         {
             // Possible errors are:
             // StoreResult.StoreVersionMismatch
             // StoreResult.MissingParametersForStoredProcedure
             throw StoreOperationErrorHandler.OnShardMapperErrorGlobal(
                       result,
                       _ssmCurrent,
                       null, // shard
                       ShardManagementErrorCategory.ShardMapManager,
                       this.OperationName,
                       StoreOperationRequestBuilder.SpGetAllShardMappingsGlobal);
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// Handles errors from the GSM operation after the LSM operations.
 /// </summary>
 /// <param name="result">Operation result.</param>
 public override void HandleDoGlobalExecuteError(IStoreResults result)
 {
     // Possible errors are:
     // StoreResult.StoreVersionMismatch
     // StoreResult.MissingParametersForStoredProcedure
     throw StoreOperationErrorHandler.OnShardMapManagerErrorGlobal(
               result,
               null,
               this.OperationName,
               StoreOperationRequestBuilder.SpGetAllDistinctShardLocationsGlobal);
 }
 /// <summary>
 /// Handles errors from the GSM operation after the LSM operations.
 /// </summary>
 /// <param name="result">Operation result.</param>
 public override void HandleDoGlobalExecuteError(IStoreResults result)
 {
     if (result.Result != StoreResult.ShardMapDoesNotExist)
     {
         // Possible errors are:
         // StoreResult.ShardMapHasShards
         // StoreResult.StoreVersionMismatch
         // StoreResult.MissingParametersForStoredProcedure
         throw StoreOperationErrorHandler.OnShardMapManagerErrorGlobal(
                   result,
                   _shardMap,
                   this.OperationName,
                   StoreOperationRequestBuilder.SpRemoveShardMapGlobal);
     }
 }