/// <summary> /// Handles errors from the GSM operation after the LSM operations. /// </summary> /// <param name="result">Operation result.</param> public override void HandleDoGlobalExecuteError(IStoreResults result) { // Expected errors are: // StoreResult.MissingParametersForStoredProcedure: // StoreResult.StoreVersionMismatch: throw StoreOperationErrorHandler.OnShardSchemaInfoErrorGlobal( result, "*", this.OperationName, StoreOperationRequestBuilder.SpGetAllShardingSchemaInfosGlobal); }
/// <summary> /// Handles errors from the GSM operation after the LSM operations. /// </summary> /// <param name="result">Operation result.</param> public override void HandleDoGlobalExecuteError(IStoreResults result) { // SchemaInfoNameDoesNotExist is handled by the callers i.e. Get vs TryGet. if (result.Result != StoreResult.SchemaInfoNameDoesNotExist) { // Expected errors are: // StoreResult.MissingParametersForStoredProcedure: // StoreResult.StoreVersionMismatch: throw StoreOperationErrorHandler.OnShardSchemaInfoErrorGlobal( result, _schemaInfoName, this.OperationName, StoreOperationRequestBuilder.SpFindShardingSchemaInfoByNameGlobal); } }