@@ -1073,11 +1073,6 @@ internal static TransactionPromotionException PromotionFailed(Exception inner)
1073
1073
return e ;
1074
1074
}
1075
1075
1076
- internal static Exception SqlDepCannotBeCreatedInProc ( )
1077
- {
1078
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SqlNotify_SqlDepCannotBeCreatedInProc ) ) ;
1079
- }
1080
-
1081
1076
static internal Exception SqlNotificationException ( SqlNotificationEventArgs notify )
1082
1077
{
1083
1078
return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQLNotify_ErrorFormat , notify . Type , notify . Info , notify . Source ) ) ;
@@ -1165,77 +1160,6 @@ internal static Exception IEnumerableOfSqlDataRecordHasNoRows()
1165
1160
return ADP . Argument ( StringsHelper . GetString ( Strings . IEnumerableOfSqlDataRecordHasNoRows ) ) ;
1166
1161
}
1167
1162
1168
- //
1169
- // SqlPipe
1170
- //
1171
- internal static Exception SqlPipeCommandHookedUpToNonContextConnection ( )
1172
- {
1173
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SqlPipe_CommandHookedUpToNonContextConnection ) ) ;
1174
- }
1175
-
1176
- internal static Exception SqlPipeMessageTooLong ( int messageLength )
1177
- {
1178
- return ADP . Argument ( StringsHelper . GetString ( Strings . SqlPipe_MessageTooLong , messageLength ) ) ;
1179
- }
1180
-
1181
- internal static Exception SqlPipeIsBusy ( )
1182
- {
1183
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SqlPipe_IsBusy ) ) ;
1184
- }
1185
-
1186
- internal static Exception SqlPipeAlreadyHasAnOpenResultSet ( string methodName )
1187
- {
1188
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SqlPipe_AlreadyHasAnOpenResultSet , methodName ) ) ;
1189
- }
1190
-
1191
- internal static Exception SqlPipeDoesNotHaveAnOpenResultSet ( string methodName )
1192
- {
1193
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SqlPipe_DoesNotHaveAnOpenResultSet , methodName ) ) ;
1194
- }
1195
-
1196
- //
1197
- // : ISqlResultSet
1198
- //
1199
- internal static Exception SqlResultSetClosed ( string methodname )
1200
- {
1201
- if ( methodname == null )
1202
- {
1203
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_SqlResultSetClosed2 ) ) ;
1204
- }
1205
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_SqlResultSetClosed , methodname ) ) ;
1206
- }
1207
- internal static Exception SqlResultSetNoData ( string methodname )
1208
- {
1209
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . ADP_DataReaderNoData , methodname ) ) ;
1210
- }
1211
- internal static Exception SqlRecordReadOnly ( string methodname )
1212
- {
1213
- if ( methodname == null )
1214
- {
1215
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_SqlRecordReadOnly2 ) ) ;
1216
- }
1217
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_SqlRecordReadOnly , methodname ) ) ;
1218
- }
1219
-
1220
- internal static Exception SqlResultSetRowDeleted ( string methodname )
1221
- {
1222
- if ( methodname == null )
1223
- {
1224
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_SqlResultSetRowDeleted2 ) ) ;
1225
- }
1226
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_SqlResultSetRowDeleted , methodname ) ) ;
1227
- }
1228
-
1229
- internal static Exception SqlResultSetCommandNotInSameConnection ( )
1230
- {
1231
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_SqlResultSetCommandNotInSameConnection ) ) ;
1232
- }
1233
-
1234
- internal static Exception SqlResultSetNoAcceptableCursor ( )
1235
- {
1236
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_SqlResultSetNoAcceptableCursor ) ) ;
1237
- }
1238
-
1239
1163
//
1240
1164
// SQL.BulkLoad
1241
1165
//
@@ -1607,10 +1531,6 @@ internal static Exception UnsupportedFeatureAndToken(SqlInternalConnectionTds in
1607
1531
return exc ;
1608
1532
}
1609
1533
1610
- internal static Exception BatchedUpdatesNotAvailableOnContextConnection ( )
1611
- {
1612
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_BatchedUpdatesNotAvailableOnContextConnection ) ) ;
1613
- }
1614
1534
internal static Exception Azure_ManagedIdentityException ( string msg )
1615
1535
{
1616
1536
SqlErrorCollection errors = new SqlErrorCollection
@@ -2411,48 +2331,17 @@ internal static Exception EmptyProviderName()
2411
2331
// Merged Provider
2412
2332
//
2413
2333
2414
- static internal Exception ContextAllowsLimitedKeywords ( )
2415
- {
2416
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_ContextAllowsLimitedKeywords ) ) ;
2417
- }
2418
- static internal Exception ContextAllowsOnlyTypeSystem2005 ( )
2419
- {
2420
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_ContextAllowsOnlyTypeSystem2005 ) ) ;
2421
- }
2422
- static internal Exception ContextConnectionIsInUse ( )
2423
- {
2424
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_ContextConnectionIsInUse ) ) ;
2425
- }
2426
2334
static internal Exception ContextConnectionIsUnsupported ( )
2427
2335
{
2428
2336
return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_ContextConnectionIsUnsupported ) ) ;
2429
2337
}
2430
- static internal Exception ContextUnavailableOutOfProc ( )
2431
- {
2432
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_ContextUnavailableOutOfProc ) ) ;
2433
- }
2434
- static internal Exception ContextUnavailableWhileInProc ( )
2435
- {
2436
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_ContextUnavailableWhileInProc ) ) ;
2437
- }
2338
+
2438
2339
static internal Exception NestedTransactionScopesNotSupported ( )
2439
2340
{
2440
2341
return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_NestedTransactionScopesNotSupported ) ) ;
2441
2342
}
2442
- static internal Exception NotAvailableOnContextConnection ( )
2443
- {
2444
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_NotAvailableOnContextConnection ) ) ;
2445
- }
2446
- static internal Exception NotificationsNotAvailableOnContextConnection ( )
2447
- {
2448
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_NotificationsNotAvailableOnContextConnection ) ) ;
2449
- }
2450
2343
2451
2344
// @TODO: Check these methods for usage
2452
- static internal Exception UserInstanceNotAvailableInProc ( )
2453
- {
2454
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_UserInstanceNotAvailableInProc ) ) ;
2455
- }
2456
2345
static internal Exception ArgumentLengthMismatch ( string arg1 , string arg2 )
2457
2346
{
2458
2347
return ADP . Argument ( StringsHelper . GetString ( Strings . SQL_ArgumentLengthMismatch , arg1 , arg2 ) ) ;
@@ -2461,10 +2350,6 @@ static internal Exception InvalidSqlDbTypeOneAllowedType(SqlDbType invalidType,
2461
2350
{
2462
2351
return ADP . Argument ( StringsHelper . GetString ( Strings . SQL_InvalidSqlDbTypeWithOneAllowedType , invalidType , method , allowedType ) ) ;
2463
2352
}
2464
- static internal Exception SqlPipeErrorRequiresSendEnd ( )
2465
- {
2466
- return ADP . InvalidOperation ( StringsHelper . GetString ( Strings . SQL_PipeErrorRequiresSendEnd ) ) ;
2467
- }
2468
2353
static internal Exception TooManyValues ( string arg )
2469
2354
{
2470
2355
return ADP . Argument ( StringsHelper . GetString ( Strings . SQL_TooManyValues ) , arg ) ;
0 commit comments