Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ExceptionBuilder.cs
Go to the documentation of this file.
4
5namespace System.Data;
6
7internal static class ExceptionBuilder
8{
9 private static void TraceException(string trace, Exception e)
10 {
11 if (e != null)
12 {
13 DataCommonEventSource.Log.Trace(trace, e);
14 }
15 }
16
18 {
19 TraceException("<comm.ADP.TraceException|ERR|THROW> '{0}'", e);
20 return e;
21 }
22
24 {
25 TraceException("<comm.ADP.TraceException|ERR|CATCH> '{0}'", e);
26 return e;
27 }
28
30 {
31 TraceException("<comm.ADP.TraceException|ERR|CATCH> '{0}'", e);
32 return e;
33 }
34
35 internal static Exception _Argument(string error)
36 {
38 }
39
40 internal static Exception _Argument(string paramName, string error)
41 {
43 }
44
45 internal static Exception _Argument(string error, Exception innerException)
46 {
47 return TraceExceptionAsReturnValue(new ArgumentException(error, innerException));
48 }
49
50 private static Exception _ArgumentNull(string paramName, string msg)
51 {
52 return TraceExceptionAsReturnValue(new ArgumentNullException(paramName, msg));
53 }
54
55 internal static Exception _ArgumentOutOfRange(string paramName, string msg)
56 {
58 }
59
60 private static Exception _IndexOutOfRange(string error)
61 {
63 }
64
65 private static Exception _InvalidOperation(string error)
66 {
68 }
69
70 private static Exception _InvalidEnumArgumentException(string error)
71 {
73 }
74
79
80 private static void ThrowDataException(string error, Exception innerException)
81 {
82 throw TraceExceptionAsReturnValue(new DataException(error, innerException));
83 }
84
85 private static Exception _Data(string error)
86 {
88 }
89
90 private static Exception _Constraint(string error)
91 {
93 }
94
95 private static Exception _InvalidConstraint(string error)
96 {
98 }
99
100 private static Exception _DeletedRowInaccessible(string error)
101 {
103 }
104
105 private static Exception _DuplicateName(string error)
106 {
108 }
109
110 private static Exception _InRowChangingEvent(string error)
111 {
113 }
114
115 private static Exception _MissingPrimaryKey(string error)
116 {
118 }
119
120 private static Exception _NoNullAllowed(string error)
121 {
123 }
124
125 private static Exception _ReadOnly(string error)
126 {
128 }
129
130 private static Exception _RowNotInTable(string error)
131 {
133 }
134
135 private static Exception _VersionNotFound(string error)
136 {
138 }
139
140 public static Exception ArgumentNull(string paramName)
141 {
142 return _ArgumentNull(paramName, System.SR.Format(System.SR.Data_ArgumentNull, paramName));
143 }
144
145 public static Exception ArgumentOutOfRange(string paramName)
146 {
147 return _ArgumentOutOfRange(paramName, System.SR.Format(System.SR.Data_ArgumentOutOfRange, paramName));
148 }
149
154
155 public static Exception ArgumentContainsNull(string paramName)
156 {
157 return _Argument(paramName, System.SR.Format(System.SR.Data_ArgumentContainsNull, paramName));
158 }
159
161 {
162 return _InvalidOperation(System.SR.Format(System.SR.Data_TypeNotAllowed, type.AssemblyQualifiedName));
163 }
164
169
170 public static Exception CaseInsensitiveNameConflict(string name)
171 {
173 }
174
175 public static Exception NamespaceNameConflict(string name)
176 {
178 }
179
184
185 public static Exception ColumnNotInTheTable(string column, string table)
186 {
188 }
189
194
199
200 public static Exception ColumnOutOfRange(string column)
201 {
203 }
204
205 public static Exception CannotAddColumn1(string column)
206 {
208 }
209
210 public static Exception CannotAddColumn2(string column)
211 {
213 }
214
216 {
218 }
219
220 public static Exception CannotAddColumn4(string column)
221 {
223 }
224
225 public static Exception CannotAddDuplicate(string column)
226 {
228 }
229
230 public static Exception CannotAddDuplicate2(string table)
231 {
233 }
234
235 public static Exception CannotAddDuplicate3(string table)
236 {
238 }
239
241 {
243 }
244
249
250 public static Exception CannotRemoveChildKey(string relation)
251 {
253 }
254
255 public static Exception CannotRemoveConstraint(string constraint, string table)
256 {
257 return _Argument(System.SR.Format(System.SR.DataColumns_RemoveConstraint, constraint, table));
258 }
259
260 public static Exception CannotRemoveExpression(string column, string expression)
261 {
262 return _Argument(System.SR.Format(System.SR.DataColumns_RemoveExpression, column, expression));
263 }
264
265 public static Exception ColumnNotInTheUnderlyingTable(string column, string table)
266 {
268 }
269
270 public static Exception InvalidOrdinal(string name, int ordinal)
271 {
273 }
274
279
281 {
283 }
284
285 public static Exception ConstraintViolation(string constraint)
286 {
288 }
289
290 public static Exception ConstraintNotInTheTable(string constraint)
291 {
293 }
294
295 public static string KeysToString(object[] keys)
296 {
297 string text = string.Empty;
298 for (int i = 0; i < keys.Length; i++)
299 {
300 text = text + Convert.ToString(keys[i], null) + ((i < keys.Length - 1) ? ", " : string.Empty);
301 }
302 return text;
303 }
304
305 public static string UniqueConstraintViolationText(DataColumn[] columns, object[] values)
306 {
307 if (columns.Length > 1)
308 {
309 string text = string.Empty;
310 for (int i = 0; i < columns.Length; i++)
311 {
312 text = text + columns[i].ColumnName + ((i < columns.Length - 1) ? ", " : "");
313 }
315 }
317 }
318
319 public static Exception ConstraintViolation(DataColumn[] columns, object[] values)
320 {
322 }
323
328
329 public static Exception DuplicateConstraint(string constraint)
330 {
332 }
333
334 public static Exception DuplicateConstraintName(string constraint)
335 {
337 }
338
343
348
353
358
363
368
369 public static Exception FailedCascadeDelete(string constraint)
370 {
372 }
373
374 public static Exception FailedCascadeUpdate(string constraint)
375 {
377 }
378
379 public static Exception FailedClearParentTable(string table, string constraint, string childTable)
380 {
381 return _InvalidConstraint(System.SR.Format(System.SR.DataConstraint_ClearParentTable, table, constraint, childTable));
382 }
383
384 public static Exception ForeignKeyViolation(string constraint, object[] keys)
385 {
387 }
388
393
394 public static string MaxLengthViolationText(string columnName)
395 {
397 }
398
399 public static string NotAllowDBNullViolationText(string columnName)
400 {
402 }
403
408
413
418
423
428
429 public static Exception NullDataType()
430 {
432 }
433
435 {
437 }
438
443
444 public static Exception DefaultValueDataType(string column, Type defaultType, Type columnType, Exception inner)
445 {
446 if (column.Length != 0)
447 {
448 return _Argument(System.SR.Format(System.SR.DataColumn_DefaultValueDataType, column, defaultType.FullName, columnType.FullName), inner);
449 }
450 return _Argument(System.SR.Format(System.SR.DataColumn_DefaultValueDataType1, defaultType.FullName, columnType.FullName), inner);
451 }
452
453 public static Exception DefaultValueColumnDataType(string column, Type defaultType, Type columnType, Exception inner)
454 {
455 return _Argument(System.SR.Format(System.SR.DataColumn_DefaultValueColumnDataType, column, defaultType.FullName, columnType.FullName), inner);
456 }
457
462
467
472
477
482
483 public static Exception NonUniqueValues(string column)
484 {
486 }
487
488 public static Exception NullKeyValues(string column)
489 {
491 }
492
493 public static Exception NullValues(string column)
494 {
496 }
497
502
503 public static Exception ReadOnly(string column)
504 {
506 }
507
512
513 public static Exception SetFailed(object value, DataColumn column, Type type, Exception innerException)
514 {
515 return _Argument(innerException.Message + System.SR.Format(System.SR.DataColumn_SetFailed, value?.ToString(), column.ColumnName, type.Name), innerException);
516 }
517
522
527
532
537
538 public static Exception CannotSetSimpleContentType(string columnName, Type type)
539 {
541 }
542
543 public static Exception CannotSetSimpleContent(string columnName, Type type)
544 {
546 }
547
548 public static Exception CannotChangeNamespace(string columnName)
549 {
551 }
552
557
562
563 public static Exception INullableUDTwithoutStaticNull(string typeName)
564 {
566 }
567
568 public static Exception IComparableNotImplemented(string typeName)
569 {
571 }
572
577
582
584 {
586 }
587
592
594 {
596 }
597
599 {
600 return _InvalidOperation(System.SR.Format(System.SR.DataColumn_DateTimeMode, oldValue.ToString(), newValue.ToString()));
601 }
602
607
608 public static Exception SetFailed(string name)
609 {
611 }
612
614 {
616 }
617
619 {
621 }
622
624 {
626 }
627
632
633 public static Exception CanNotSetTable()
634 {
636 }
637
638 public static Exception CanNotUse()
639 {
641 }
642
644 {
646 }
647
648 public static Exception SetTable()
649 {
651 }
652
653 public static Exception SetIListObject()
654 {
656 }
657
659 {
661 }
662
663 public static Exception NotOpen()
664 {
666 }
667
669 {
671 }
672
673 public static Exception CanNotDelete()
674 {
676 }
677
678 public static Exception CanNotEdit()
679 {
681 }
682
687
692
693 public static Exception CanNotClear()
694 {
696 }
697
702
707
708 public static Exception PropertyNotFound(string property, string table)
709 {
711 }
712
713 public static Exception ColumnToSortIsOutOfRange(string column)
714 {
716 }
717
722
723 public static Exception KeyNoColumns()
724 {
726 }
727
732
733 public static Exception KeyDuplicateColumns(string columnName)
734 {
736 }
737
742
743 public static Exception NoRelationName()
744 {
746 }
747
752
757
758 public static Exception KeyLengthZero()
759 {
761 }
762
764 {
766 }
767
772
773 public static Exception RelationForeignTable(string t1, string t2)
774 {
776 }
777
778 public static Exception GetParentRowTableMismatch(string t1, string t2)
779 {
781 }
782
783 public static Exception SetParentRowTableMismatch(string t1, string t2)
784 {
786 }
787
789 {
791 }
792
797
798 public static Exception TableCantBeNestedInTwoTables(string tableName)
799 {
801 }
802
803 public static Exception LoopInNestedRelations(string tableName)
804 {
806 }
807
812
817
822
823 public static Exception InValidNestedRelation(string childTableName)
824 {
826 }
827
832
834 {
836 }
837
839 {
841 }
842
847
852
857
862
867
869 {
871 }
872
873 public static Exception NoCurrentData()
874 {
876 }
877
882
887
892
897
902
903 public static Exception RowEmpty()
904 {
906 }
907
909 {
911 }
912
913 public static Exception RowOutOfRange()
914 {
916 }
917
922
927
928 public static Exception RowInsertTwice(int index, string tableName)
929 {
931 }
932
933 public static Exception RowInsertMissing(string tableName)
934 {
936 }
937
939 {
941 }
942
944 {
946 }
947
952
957
959 {
961 }
962
963 internal static Exception SetDataSetNameConflicting(string name)
964 {
966 }
967
968 public static Exception DataSetUnsupportedSchema(string ns)
969 {
971 }
972
977
982
987
992
997
1002
1004 {
1006 }
1007
1008 public static Exception IndexKeyLength(int length, int keyLength)
1009 {
1010 if (length != 0)
1011 {
1013 }
1015 }
1016
1018 {
1019 if (table.TableName.Length != 0)
1020 {
1022 }
1024 }
1025
1030
1035
1036 public static Exception RelationNotInTheDataSet(string relation)
1037 {
1039 }
1040
1045
1046 public static Exception DuplicateRelation(string relation)
1047 {
1049 }
1050
1052 {
1054 }
1055
1057 {
1059 }
1060
1065
1070
1075
1077 {
1079 }
1080
1085
1087 {
1088 return CannotChangeCaseLocale(null);
1089 }
1090
1091 public static Exception CannotChangeCaseLocale(Exception innerException)
1092 {
1093 return _Argument(System.SR.DataSet_CannotChangeCaseLocale, innerException);
1094 }
1095
1100
1101 public static Exception InvalidSchemaSerializationMode(Type enumType, string mode)
1102 {
1104 }
1105
1107 {
1108 return _InvalidEnumArgumentException(mode);
1109 }
1110
1115
1120
1121 public static Exception NoTableName()
1122 {
1124 }
1125
1130
1131 public static Exception InvalidSortString(string sort)
1132 {
1134 }
1135
1136 public static Exception DuplicateTableName(string table)
1137 {
1139 }
1140
1141 public static Exception DuplicateTableName2(string table, string ns)
1142 {
1144 }
1145
1150
1151 public static Exception DatasetConflictingName(string table)
1152 {
1154 }
1155
1160
1165
1170
1171 public static Exception TableNotInTheDataSet(string table)
1172 {
1174 }
1175
1177 {
1179 }
1180
1181 public static Exception TableInConstraint(DataTable table, Constraint constraint)
1182 {
1184 }
1185
1190
1195
1200
1205
1206 public static Exception TableNotFound(string tableName)
1207 {
1209 }
1210
1212 {
1213 return _Data(System.SR.Format(System.SR.DataStorage_AggregateException, aggregateType, type.Name));
1214 }
1215
1216 public static Exception InvalidStorageType(TypeCode typecode)
1217 {
1218 return _Data(System.SR.Format(System.SR.DataStorage_InvalidStorageType, typecode.ToString()));
1219 }
1220
1221 public static Exception RangeArgument(int min, int max)
1222 {
1224 }
1225
1226 public static Exception NullRange()
1227 {
1229 }
1230
1235
1236 public static Exception ProblematicChars(char charValue)
1237 {
1238 return _Argument(System.SR.Format(System.SR.DataStorage_ProblematicChars, $"0x{charValue:X}"));
1239 }
1240
1245
1247 {
1249 }
1250
1251 public static Exception MissingAttribute(string attribute)
1252 {
1253 return MissingAttribute(string.Empty, attribute);
1254 }
1255
1256 public static Exception MissingAttribute(string element, string attribute)
1257 {
1258 return _Data(System.SR.Format(System.SR.Xml_MissingAttribute, element, attribute));
1259 }
1260
1261 public static Exception InvalidAttributeValue(string name, string value)
1262 {
1264 }
1265
1266 public static Exception AttributeValues(string name, string value1, string value2)
1267 {
1268 return _Data(System.SR.Format(System.SR.Xml_AttributeValues, name, value1, value2));
1269 }
1270
1271 public static Exception ElementTypeNotFound(string name)
1272 {
1274 }
1275
1276 public static Exception RelationParentNameMissing(string rel)
1277 {
1279 }
1280
1281 public static Exception RelationChildNameMissing(string rel)
1282 {
1284 }
1285
1286 public static Exception RelationTableKeyMissing(string rel)
1287 {
1289 }
1290
1291 public static Exception RelationChildKeyMissing(string rel)
1292 {
1294 }
1295
1296 public static Exception UndefinedDatatype(string name)
1297 {
1299 }
1300
1302 {
1304 }
1305
1307 {
1309 }
1310
1311 public static Exception InvalidField(string name)
1312 {
1314 }
1315
1316 public static Exception InvalidSelector(string name)
1317 {
1319 }
1320
1321 public static Exception CircularComplexType(string name)
1322 {
1324 }
1325
1326 public static Exception CannotInstantiateAbstract(string name)
1327 {
1329 }
1330
1331 public static Exception InvalidKey(string name)
1332 {
1333 return _Data(System.SR.Format(System.SR.Xml_InvalidKey, name));
1334 }
1335
1337 {
1338 return _Data(System.SR.Xml_MissingSQL);
1339 }
1340
1342 {
1344 }
1345
1346 public static Exception ColumnTypeConflict(string name)
1347 {
1349 }
1350
1351 public static Exception CannotConvert(string name, string type)
1352 {
1354 }
1355
1356 public static Exception MissingRefer(string name)
1357 {
1358 return _Data(System.SR.Format(System.SR.Xml_MissingRefer, "refer", "keyref", name));
1359 }
1360
1361 public static Exception InvalidPrefix(string name)
1362 {
1364 }
1365
1370
1375
1380
1381 public static Exception NestedCircular(string name)
1382 {
1384 }
1385
1386 public static Exception MultipleParentRows(string tableQName)
1387 {
1388 return _Data(System.SR.Format(System.SR.Xml_MultipleParentRows, tableQName));
1389 }
1390
1391 public static Exception PolymorphismNotSupported(string typeName)
1392 {
1394 }
1395
1400
1401 internal static void ThrowMultipleTargetConverter(Exception innerException)
1402 {
1403 string error = ((innerException != null) ? System.SR.Xml_MultipleTargetConverterError : System.SR.Xml_MultipleTargetConverterEmpty);
1404 ThrowDataException(error, innerException);
1405 }
1406
1407 public static Exception DuplicateDeclaration(string name)
1408 {
1410 }
1411
1412 public static Exception FoundEntity()
1413 {
1415 }
1416
1417 public static Exception MergeFailed(string name)
1418 {
1419 return _Data(name);
1420 }
1421
1422 public static Exception ConvertFailed(Type type1, Type type2)
1423 {
1425 }
1426
1427 public static Exception InvalidDataTableReader(string tableName)
1428 {
1430 }
1431
1436
1441
1446
1451
1456
1457 public static Exception EmptyDataTableReader(string tableName)
1458 {
1460 }
1461
1462 internal static Exception InvalidDuplicateNamedSimpleTypeDelaration(string stName, string errorStr)
1463 {
1465 }
1466
1467 internal static Exception InternalRBTreeError(RBTreeError internalError)
1468 {
1469 return _InvalidOperation(System.SR.Format(System.SR.RbTree_InvalidState, (int)internalError));
1470 }
1471
1476}
static ? string ToString(object? value)
Definition Convert.cs:2321
static NotSupportedException NotSupported()
Definition ADP.cs:753
virtual string ConstraintName
Definition Constraint.cs:24
static readonly DataCommonEventSource Log
static Exception _IndexOutOfRange(string error)
static Exception InvalidCurrentRowInDataTableReader()
static Exception ColumnOutOfRange(int index)
static Exception TableMissingPrimaryKey()
static Exception RowAlreadyRemoved()
static Exception CanNotSetTable()
static Exception DuplicateConstraintRead(string str)
static Exception CannotRemovePrimaryKey()
static Exception TraceExceptionAsReturnValue(Exception e)
static Exception DeletedRowInaccessible()
static Exception RowInsertMissing(string tableName)
static Exception ColumnOutOfRange(string column)
static void ThrowDataException(string error, Exception innerException)
static Exception CannotRemoveColumn()
static Exception SetDataSetFailed()
static Exception CanNotSetRemotingFormat()
static void TraceException(string trace, Exception e)
static Exception CantChangeDateTimeMode(DataSetDateTime oldValue, DataSetDateTime newValue)
static Exception NeededForForeignKeyConstraint(UniqueConstraint key, ForeignKeyConstraint fk)
static Exception InvalidDataColumnMapping(Type type)
static Exception InValidNestedRelation(string childTableName)
static Exception DefaultValueDataType(string column, Type defaultType, Type columnType, Exception inner)
static Exception AddPrimaryKeyConstraint()
static string MaxLengthViolationText(string columnName)
static Exception MissingAttribute(string attribute)
static Exception RowInsertTwice(int index, string tableName)
static Exception ConstraintViolation(string constraint)
static Exception CannotChangeCaseLocale(Exception innerException)
static Exception DataTableInferenceNotSupported()
static Exception CannotAddDuplicate2(string table)
static Exception GetElementIndex(int index)
static Exception NoRelationName()
static Exception RelationDataSetMismatch()
static Exception CannotRemoveChildKey(string relation)
static Exception EditInRowChanging()
static Exception SetDataSetNameConflicting(string name)
static Exception MultipleParentRows(string tableQName)
static Exception RowRemovedFromTheTable()
static Exception IndexKeyLength(int length, int keyLength)
static Exception RelationParentNameMissing(string rel)
static Exception CaseInsensitiveNameConflict(string name)
static Exception ConstraintRemoveFailed()
static Exception RowOutOfRange(int index)
static Exception _DuplicateName(string error)
static Exception ExpressionInConstraint(DataColumn column)
static Exception ColumnTypeNotSupported()
static Exception CannotRemoveConstraint(string constraint, string table)
static Exception CannotSetSimpleContentType(string columnName, Type type)
static Exception IComparableNotImplemented(string typeName)
static Exception InvalidParentNamespaceinNestedRelation(string childTableName)
static string UniqueConstraintViolationText(DataColumn[] columns, object[] values)
static Exception TableCannotAddToSimpleContent()
static Exception GetParentRowTableMismatch(string t1, string t2)
static Exception ExpressionCircular()
static Exception DeleteInRowDeleting()
static Exception TableOutOfRange(int index)
static Exception RelationDataSetNull()
static Exception AutoIncrementAndExpression()
static Exception EndEditInRowChanging()
static Exception TooManyIsDataSetAttributesInSchema()
static Exception ColumnsTypeMismatch()
static Exception AttributeValues(string name, string value1, string value2)
static Exception DatasetConflictingName(string table)
static Exception ReadOnlyAndExpression()
static Exception FailedCascadeUpdate(string constraint)
static Exception ConstraintNotInTheTable(string constraint)
static Exception AddExternalObject()
static Exception RelationNestedReadOnly()
static Exception ValueArrayLength()
static Exception InvalidRowBitPattern()
static Exception TableCantBeNestedInTwoTables(string tableName)
static Exception CannotInstantiateAbstract(string name)
static Exception ExpressionAndConstraint(DataColumn column, Constraint constraint)
static Exception RowAlreadyDeleted()
static Exception NoProposedData()
static Exception DataTableReaderArgumentIsEmpty()
static Exception ConstraintAddFailed(DataTable table)
static Exception _Argument(string error)
static Exception ColumnTypeConflict(string name)
static Exception CannotAddDuplicate(string column)
static Exception CreateChildView()
static Exception CannotSetMaxLength(DataColumn column, int value)
static Exception _Argument(string error, Exception innerException)
static Exception DefaultValueColumnDataType(string column, Type defaultType, Type columnType, Exception inner)
static Exception NoConstraintName()
static Exception TableAlreadyInOtherDataSet()
static Exception _ReadOnly(string error)
static Exception AggregateException(AggregateType aggregateType, Type type)
static Exception ParentRowNotInTheDataSet()
static Exception NonUniqueValues(string column)
static Exception CannotAddColumn1(string column)
static Exception DefaultValueAndAutoIncrement()
static Exception SetAddedAndModifiedCalledOnnonUnchanged()
static Exception EnumeratorModified()
static Exception UndefinedDatatype(string name)
static Exception CantChangeDataType()
static Exception DuplicateConstraintName(string constraint)
static Exception EnforceConstraint()
static Exception TableAlreadyInTheDataSet()
static Exception NullKeyValues(string column)
static Exception MergeFailed(string name)
static Exception CanNotSerializeDataTableHierarchy()
static Exception RowNotInTheTable()
static Exception ArgumentContainsNullValue()
static string NotAllowDBNullViolationText(string columnName)
static Exception _InvalidEnumArgumentException(string error)
static Exception CannotAddDuplicate3(string table)
static Exception CanNotUseDataViewManager()
static Exception _Argument(string paramName, string error)
static Exception InvalidAttributeValue(string name, string value)
static Exception ColumnNotInTheUnderlyingTable(string column, string table)
static Exception InvalidRowState(DataRowState state)
static Exception DuplicateTableName2(string table, string ns)
static Exception MultipleParents()
static Exception _NoNullAllowed(string error)
static Exception _MissingPrimaryKey(string error)
static Exception ChildTableMismatch()
static Exception HasToBeStringType(DataColumn column)
static Exception _RowNotInTable(string error)
static Exception INullableUDTwithoutStaticNull(string typeName)
static Exception _VersionNotFound(string error)
static Exception CannotModifyCollection()
static Exception AutoIncrementSeed()
static Exception BadObjectPropertyAccess(string error)
static Exception ElementTypeNotFound(string name)
static Exception _ArgumentOutOfRange(string paramName, string msg)
static Exception DuplicateTableName(string table)
static Exception AutoIncrementAndDefaultValue()
static Exception LongerThanMaxLength(DataColumn column)
static Exception ArgumentOutOfRange(string paramName)
static Exception IsDataSetAttributeMissingInSchema()
static Exception TablesInDifferentSets()
static Exception CannotRemoveExpression(string column, string expression)
static Exception NullValues(string column)
static Exception SetParentRowTableMismatch(string t1, string t2)
static Exception CanNotRemoteDataTable()
static Exception EmptyDataTableReader(string tableName)
static Exception CaseLocaleMismatch()
static Exception DiffgramMissingSQL()
static Exception RemoveExternalObject()
static Exception CannotChangeCaseLocale()
static Exception CannotSetMaxLength2(DataColumn column)
static Exception _Constraint(string error)
static Exception RelationOutOfRange(object index)
static Exception CannotChangeSchemaSerializationMode()
static Exception ConvertFailed(Type type1, Type type2)
static Exception RelationAlreadyExists()
static Exception BeginEditInRowChanging()
static Exception ParentOrChildColumnsDoNotHaveDataSet()
static Exception RowNotInTheDataSet()
static Exception NestedCircular(string name)
static Exception SimpleTypeNotSupported()
static Exception InvalidDataTableReader(string tableName)
static Exception RelationChildKeyMissing(string rel)
static Exception SelfnestedDatasetConflictingName(string table)
static Exception CanNotBindTable()
static Exception AddNewNotAllowNull()
static Exception CanNotDeserializeObjectType()
static Exception ParentTableMismatch()
static Exception DuplicateDeclaration(string name)
static Exception KeyTooManyColumns(int cols)
static Exception RemovePrimaryKey(DataTable table)
static Exception PropertyNotFound(string property, string table)
static Exception FailedClearParentTable(string table, string constraint, string childTable)
static Exception SetFailed(string name)
static Exception CannotSetSimpleContent(string columnName, Type type)
static Exception DatatypeNotDefined()
static Exception _InvalidConstraint(string error)
static Exception RelationAlreadyInOtherDataSet()
static Exception InvalidStorageType(TypeCode typecode)
static Exception KeyColumnsIdentical()
static Exception RelationForeignRow()
static Exception _ArgumentNull(string paramName, string msg)
static Exception ArgumentContainsNull(string paramName)
static Exception CannotSetToNull(DataColumn column)
static Exception FailedCascadeDelete(string constraint)
static Exception DuplicateConstraint(string constraint)
static Exception ColumnToSortIsOutOfRange(string column)
static Exception RelationChildNameMissing(string rel)
static Exception CannotAddColumn2(string column)
static Exception DuplicateRelation(string relation)
static Exception SetDataSetNameToEmpty()
static Exception ColumnNotInTheTable(string column, string table)
static Exception SetFailed(object value, DataColumn column, Type type, Exception innerException)
static Exception InvalidSelector(string name)
static Exception InvalidOffsetLength()
static Exception RowAlreadyInTheCollection()
static Exception CantAddConstraintToMultipleNestedTable(string tableName)
static Exception ConstraintViolation(DataColumn[] columns, object[] values)
static Exception RowAlreadyInOtherCollection()
static Exception ColumnNotInAnyTable()
static Exception KeyDuplicateColumns(string columnName)
static Exception CannotAddColumn3()
static Exception AutoIncrementCannotSetIfHasData(string typeName)
static Exception _Data(string error)
static Exception ConstraintParentValues()
static Exception ExpressionAndReadOnly()
static Exception CannotConvert(string name, string type)
static Exception DataTableReaderSchemaIsInvalid(string tableName)
static Exception CanNotSerializeDataTableWithEmptyName()
static Exception ColumnNameRequired()
static Exception InvalidPrefix(string name)
static Exception CanNotSetDataSet()
static Exception KeyLengthMismatch()
static Exception ConstraintOutOfRange(int index)
static Exception _InvalidOperation(string error)
static Exception CannotSetDateTimeModeForNonDateTimeColumns()
static Exception NegativeMinimumCapacity()
static Exception TraceExceptionForCapture(Exception e)
static Exception CannotCreateDataReaderOnEmptyDataSet()
static Exception _InvalidEnumArgumentException< T >(T value)
static Exception KeyTableMismatch()
static Exception SetRowStateFilter()
static Exception TableNotInTheDataSet(string table)
static Exception RelationForeignTable(string t1, string t2)
static Exception UniqueConstraintViolation()
static Exception InternalRBTreeError(RBTreeError internalError)
static Exception MultipleTextOnlyColumns()
static Exception InvalidField(string name)
static Exception _InRowChangingEvent(string error)
static Exception RemoveParentRow(ForeignKeyConstraint constraint)
static Exception _DeletedRowInaccessible(string error)
static Exception CancelEditInRowChanging()
static Exception InvalidKey(string name)
static Exception InsertExternalObject()
static Exception ForeignRelation()
static Exception RelationDoesNotExist()
static Exception ExpressionAndUnique()
static Exception StorageSetFailed()
static Exception TableInConstraint(DataTable table, Constraint constraint)
static Exception NoOriginalData()
static Exception CannotAddColumn4(string column)
static Exception UniqueAndExpression()
static Exception TraceExceptionWithoutRethrow(Exception e)
static Exception InvalidDuplicateNamedSimpleTypeDelaration(string stName, string errorStr)
static Exception TableNotFound(string tableName)
static Exception InvalidSortString(string sort)
static Exception RelationAlreadyInTheDataSet()
static Exception RelationTableNull()
static Exception ReadOnly(string column)
static Exception RelationNotInTheDataSet(string relation)
static Exception RelationTableWasRemoved()
static Exception ProblematicChars(char charValue)
static Exception CannotChangeNamespace(string columnName)
static Exception InvalidDateTimeMode(DataSetDateTime mode)
static Exception NamespaceNameConflict(string name)
static Exception MissingRefer(string name)
static Exception ForeignKeyViolation(string constraint, object[] keys)
static Exception RecordStateRange()
static string KeysToString(object[] keys)
static Exception MismatchKeyLength()
static Exception InvalidRowVersion()
static void ThrowMultipleTargetConverter(Exception innerException)
static Exception SetIListObject()
static Exception MissingAttribute(string element, string attribute)
static Exception InvalidSchemaSerializationMode(Type enumType, string mode)
static Exception InvalidOrdinal(string name, int ordinal)
static Exception DataSetUnsupportedSchema(string ns)
static Exception RelationTableKeyMissing(string rel)
static Exception CircularComplexType(string name)
static Exception MergeMissingDefinition(string obj)
static Exception TableForeignPrimaryKey()
static Exception InvalidRemotingFormat(SerializationFormat mode)
static Exception ConstraintForeignTable()
static Exception RowInsertOutOfRange(int index)
static Exception TypeNotAllowed(Type type)
static Exception UDTImplementsIChangeTrackingButnotIRevertible(string typeName)
static Exception RangeArgument(int min, int max)
static Exception LoopInNestedRelations(string tableName)
static Exception ArgumentNull(string paramName)
static Exception PolymorphismNotSupported(string typeName)
virtual string Message
Definition Exception.cs:100
static CultureInfo InvariantCulture
static string DataColumn_NullKeyValues
Definition SR.cs:288
static string DataColumn_NotInTheTable
Definition SR.cs:296
static string DataKey_RemovePrimaryKey
Definition SR.cs:392
static string DataColumns_RemoveConstraint
Definition SR.cs:252
static string DataColumn_AutoIncrementAndExpression
Definition SR.cs:254
static string Data_ArgumentNull
Definition SR.cs:224
static string DataRelation_KeyLengthMismatch
Definition SR.cs:400
static string DataRow_InvalidVersion
Definition SR.cs:484
static string DataRow_OutOfRange
Definition SR.cs:486
static string DataTableReader_InvalidRowInDataTableReader
Definition SR.cs:674
static string DataView_InsertExternalObject
Definition SR.cs:626
static string DataView_NotOpen
Definition SR.cs:612
static string DataColumns_RemovePrimaryKey
Definition SR.cs:248
static string Xml_DuplicateConstraint
Definition SR.cs:76
static string DataView_AddExternalObject
Definition SR.cs:622
static string Xml_DatatypeNotDefined
Definition SR.cs:68
static string DataRow_NoProposedData
Definition SR.cs:478
static string Xml_AttributeValues
Definition SR.cs:56
static string DataConstraint_NeededForForeignKeyConstraint
Definition SR.cs:366
static string DataRow_NotInTheTable
Definition SR.cs:458
static string DataView_SetDataSetFailed
Definition SR.cs:592
static string DataStorage_AggregateException
Definition SR.cs:580
static string DataRelation_TableWasRemoved
Definition SR.cs:436
static string DataTableReader_SchemaInvalidDataTableReader
Definition SR.cs:666
static string SqlConvert_ConvertFailed
Definition SR.cs:638
static string DataRow_EndEditInRowChanging
Definition SR.cs:464
static string DataRow_AlreadyDeleted
Definition SR.cs:498
static string DataView_AddNewNotAllowNull
Definition SR.cs:610
static string DataColumn_NullDataType
Definition SR.cs:266
static string RbTree_InvalidState
Definition SR.cs:678
static string DataConstraint_CascadeUpdate
Definition SR.cs:370
static string Xml_MissingRefer
Definition SR.cs:80
static string DataColumns_AddDuplicate3
Definition SR.cs:244
static string Xml_CannotConvert
Definition SR.cs:78
static string DataRow_RowInsertMissing
Definition SR.cs:490
static string Data_CannotModifyCollection
Definition SR.cs:214
static string DataRow_CancelEditInRowChanging
Definition SR.cs:468
static string DataColumn_NotInTheUnderlyingTable
Definition SR.cs:324
static string DataTable_NoName
Definition SR.cs:522
static string DataColumns_OutOfRange
Definition SR.cs:230
static string DataView_CanNotSetDataSet
Definition SR.cs:598
static string DataColumn_DefaultValueColumnDataType
Definition SR.cs:272
static string DataConstraint_ForeignTable
Definition SR.cs:358
static string DataColumn_ExpressionAndUnique
Definition SR.cs:278
static string Xml_FoundEntity
Definition SR.cs:102
static string DataRow_NoCurrentData
Definition SR.cs:474
static string DataKey_DuplicateColumns
Definition SR.cs:390
static string DataSet_SetDataSetNameConflicting
Definition SR.cs:510
static string DataView_SetFailed
Definition SR.cs:590
static string Data_ArgumentOutOfRange
Definition SR.cs:222
static string Xml_MissingAttribute
Definition SR.cs:52
static string DataTable_SelfnestedDatasetConflictingName
Definition SR.cs:542
static string DataRelation_KeyZeroLength
Definition SR.cs:402
static string DataColumn_CannotSetMaxLength2
Definition SR.cs:310
static string DataColumn_ReadOnly
Definition SR.cs:292
static string RbTree_EnumerationBroken
Definition SR.cs:680
static string DataColumn_SetFailed
Definition SR.cs:300
static string RecordManager_MinimumCapacity
Definition SR.cs:636
static string DataConstraint_DuplicateName
Definition SR.cs:354
static string DataTableReader_ArgumentContainsNullValue
Definition SR.cs:672
static string Xml_RelationTableKeyMissing
Definition SR.cs:62
static string DataRow_AlreadyInOtherCollection
Definition SR.cs:494
static string DataRelation_ForeignRow
Definition SR.cs:404
static string DataConstraint_CantAddConstraintToMultipleNestedTable
Definition SR.cs:382
static string DataKey_TooManyColumns
Definition SR.cs:388
static string Xml_InvalidKey
Definition SR.cs:74
static string DataRow_RemovedFromTheTable
Definition SR.cs:480
static string DataTableReader_CannotCreateDataReaderOnEmptyDataSet
Definition SR.cs:668
static string DataColumns_Add1
Definition SR.cs:232
static string DataConstraint_ClearParentTable
Definition SR.cs:372
static string DataColumn_INullableUDTwithoutStaticNull
Definition SR.cs:332
static string DataTable_CanNotSerializeDataTableWithEmptyName
Definition SR.cs:536
static string DataColumns_Remove
Definition SR.cs:246
static string Xml_InvalidSelector
Definition SR.cs:72
static string DataColumn_LongerThanMaxLength
Definition SR.cs:304
static string DataRow_NoOriginalData
Definition SR.cs:476
static string DataConstraint_ViolationValue
Definition SR.cs:346
static string DataRelation_ParentOrChildColumnsDoNotHaveDataSet
Definition SR.cs:450
static string DataIndex_RecordStateRange
Definition SR.cs:574
static string DataRelation_ParentTableMismatch
Definition SR.cs:440
static string DataView_CanNotUseDataViewManager
Definition SR.cs:600
static string DataMerge_MissingDefinition
Definition SR.cs:560
static string Xml_ColumnConflict
Definition SR.cs:96
static string DataTable_CanNotSerializeDataTableHierarchy
Definition SR.cs:530
static string DataColumn_NotInAnyTable
Definition SR.cs:298
static string DataConstraint_OutOfRange
Definition SR.cs:350
static string Xml_RelationChildNameMissing
Definition SR.cs:60
static string DataColumn_DefaultValueDataType
Definition SR.cs:268
static string DataTable_NotInTheDataSet
Definition SR.cs:550
static string DataColumn_AutoIncrementCannotSetIfHasData
Definition SR.cs:322
static string DataRow_BeginEditInRowChanging
Definition SR.cs:466
static string DataColumn_NameRequired
Definition SR.cs:262
static string Xml_IsDataSetAttributeMissingInSchema
Definition SR.cs:112
static string DataColumn_HasToBeStringType
Definition SR.cs:306
static string DataColumn_DateTimeMode
Definition SR.cs:330
static string DataSet_CannotChangeCaseLocale
Definition SR.cs:514
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string DataKey_TableMismatch
Definition SR.cs:384
static string DataColumn_CannotChangeNamespace
Definition SR.cs:320
static string DataRow_DeletedRowInaccessible
Definition SR.cs:482
static string DataColumns_AddDuplicate
Definition SR.cs:240
static string Xml_PolymorphismNotSupported
Definition SR.cs:104
static string Xml_ValueOutOfRange
Definition SR.cs:54
static string NamedSimpleType_InvalidDuplicateNamedSimpleTypeDelaration
Definition SR.cs:682
static string DataView_CreateChildView
Definition SR.cs:614
static string DataTable_DatasetConflictingName
Definition SR.cs:544
static string DataColumn_UniqueAndExpression
Definition SR.cs:276
static string Xml_RelationChildKeyMissing
Definition SR.cs:64
static string DataStorage_SetInvalidDataType
Definition SR.cs:586
static string DataRelation_CaseLocaleMismatch
Definition SR.cs:448
static string ADP_InvalidEnumerationValue
Definition SR.cs:44
static string DataRelation_TablesInDifferentSets
Definition SR.cs:418
static string DataConstraint_AddFailed
Definition SR.cs:362
static string DataView_CanNotEdit
Definition SR.cs:618
static string Xml_DataTableInferenceNotSupported
Definition SR.cs:108
static string DataConstraint_AddPrimaryKeyConstraint
Definition SR.cs:380
static string DataRow_Empty
Definition SR.cs:500
static string DataROWView_PropertyNotFound
Definition SR.cs:630
static string DataRelation_AlreadyExists
Definition SR.cs:420
static string DataRelation_TableNull
Definition SR.cs:434
static string Data_NamespaceNameConflict
Definition SR.cs:218
static string Xml_InvalidPrefix_SpecialCharacters
Definition SR.cs:98
static string DataView_SetIListObject
Definition SR.cs:608
static string DataRelation_ChildTableMismatch
Definition SR.cs:438
static string DataColumn_ExceedMaxLength
Definition SR.cs:316
static string DataColumns_Add2
Definition SR.cs:234
static string DataTable_TableNotFound
Definition SR.cs:558
static string DataView_SetRowStateFilter
Definition SR.cs:594
static string DataColumn_ExpressionAndReadOnly
Definition SR.cs:280
static string DataRelation_NotInTheDataSet
Definition SR.cs:430
static string Xml_NestedCircular
Definition SR.cs:100
static string DataRow_EditInRowChanging
Definition SR.cs:462
static string DataColumns_RemoveChildKey
Definition SR.cs:250
static string DataConstraint_Duplicate
Definition SR.cs:352
static string DataView_CanNotBindTable
Definition SR.cs:606
static string DataRelation_InValidNamespaceInNestedRelation
Definition SR.cs:454
static string DataConstraint_RemoveFailed
Definition SR.cs:364
static string DataColumn_InvalidDataColumnMapping
Definition SR.cs:326
static string DataView_GetElementIndex
Definition SR.cs:620
static string DataRelation_DoesNotExist
Definition SR.cs:422
static string DataTableReader_DataTableCleared
Definition SR.cs:676
static string DataConstraint_NoName
Definition SR.cs:342
static string DataView_CanNotUse
Definition SR.cs:604
static string DataRow_ParentRowNotInTheDataSet
Definition SR.cs:460
static string DataTable_InConstraint
Definition SR.cs:556
static string DataColumn_SetAddedAndModifiedCalledOnNonUnchanged
Definition SR.cs:336
static string Data_TypeNotAllowed
Definition SR.cs:228
static string DataColumns_Add3
Definition SR.cs:236
static string DataTable_InRelation
Definition SR.cs:554
static string DataTable_DuplicateName2
Definition SR.cs:540
static string DataKey_NoColumns
Definition SR.cs:386
static string Data_CaseInsensitiveNameConflict
Definition SR.cs:216
static string DataTable_CanNotSetRemotingFormat
Definition SR.cs:534
static string DataView_SetTable
Definition SR.cs:596
static string DataRelation_AlreadyInTheDataSet
Definition SR.cs:426
static string DataColumn_CannotSetToNull
Definition SR.cs:302
static string DataColumns_Add4
Definition SR.cs:238
static string DataColumn_NullableTypesNotSupported
Definition SR.cs:340
static string DataIndex_FindWithoutSortOrder
Definition SR.cs:576
static string DataColumn_ExpressionInConstraint
Definition SR.cs:284
static string Xml_MultipleParentRows
Definition SR.cs:110
static string Xml_MismatchKeyLength
Definition SR.cs:82
static string DataColumn_NotAllowDBNull
Definition SR.cs:318
static string DataColumns_RemoveExpression
Definition SR.cs:902
static string DataRelation_ForeignTable
Definition SR.cs:408
static string Xml_RelationParentNameMissing
Definition SR.cs:58
static string DataColumn_DefaultValueAndAutoIncrement
Definition SR.cs:258
static string Xml_MissingSQL
Definition SR.cs:94
static string DataTable_OutOfRange
Definition SR.cs:552
static string DataTableReader_DataTableReaderArgumentIsEmpty
Definition SR.cs:670
static string DataKey_RemovePrimaryKey1
Definition SR.cs:394
static string DataColumn_CannotSetMaxLength
Definition SR.cs:308
static string DataRelation_NoName
Definition SR.cs:406
static string Xml_CannotInstantiateAbstract
Definition SR.cs:86
static string DataRelation_RelationNestedReadOnly
Definition SR.cs:442
static string DataColumn_NullValues
Definition SR.cs:290
static string DataStorage_IComparableNotDefined
Definition SR.cs:588
static string Xml_ElementTypeNotFound
Definition SR.cs:906
static string DataColumn_AutoIncrementAndDefaultValue
Definition SR.cs:256
static string DataStorage_InvalidStorageType
Definition SR.cs:582
static string DataRelation_DuplicateName
Definition SR.cs:428
static string Data_EnforceConstraints
Definition SR.cs:212
static string DataRow_RowInsertOutOfRange
Definition SR.cs:488
static string DataConstraint_CascadeDelete
Definition SR.cs:368
static string Xml_MergeDuplicateDeclaration
Definition SR.cs:92
static string DataView_CanNotDelete
Definition SR.cs:616
static string DataTable_MultipleSimpleContentColumns
Definition SR.cs:524
static string DataRow_AlreadyInTheCollection
Definition SR.cs:496
static string DataView_CanNotSetTable
Definition SR.cs:602
static string DataConstraint_BadObjectPropertyAccess
Definition SR.cs:376
static string DataColumn_UDTImplementsIChangeTrackingButnotIRevertible
Definition SR.cs:334
static string DataSet_UnsupportedSchema
Definition SR.cs:512
static string Range_NullRange
Definition SR.cs:634
static string Xml_TooManyIsDataSetAttributesInSchema
Definition SR.cs:114
static string DataRelation_AlreadyInOtherDataSet
Definition SR.cs:424
static string DataColumn_DefaultValueDataType1
Definition SR.cs:270
static string DataConstraint_Violation
Definition SR.cs:344
static string DataRow_RowOutOfRange
Definition SR.cs:492
static string DataStorage_ProblematicChars
Definition SR.cs:584
static string DataRow_InvalidRowBitPattern
Definition SR.cs:506
static string Range_Argument
Definition SR.cs:632
static string DataRow_RowInsertTwice
Definition SR.cs:904
static string DataRelation_OutOfRange
Definition SR.cs:432
static string DataIndex_KeyLength
Definition SR.cs:578
static string DataRow_NotInTheDataSet
Definition SR.cs:456
static string DataTable_AlreadyInOtherDataSet
Definition SR.cs:546
static string DataColumn_NonUniqueValues
Definition SR.cs:294
static string DataRelation_KeyColumnsIdentical
Definition SR.cs:398
static string DataConstraint_RemoveParentRow
Definition SR.cs:378
static string Xml_UndefinedDatatype
Definition SR.cs:66
static string DataColumn_ExpressionCircular
Definition SR.cs:286
static string Data_InvalidOffsetLength
Definition SR.cs:220
static string DataSet_CannotChangeSchemaSerializationMode
Definition SR.cs:516
static string DataRelation_SetParentRowTableMismatch
Definition SR.cs:414
static string DataColumn_ExpressionAndConstraint
Definition SR.cs:282
static string DataView_CanNotClear
Definition SR.cs:624
static string DataRelation_InValidNestedRelation
Definition SR.cs:452
static string DataTable_CannotAddToSimpleContent
Definition SR.cs:520
static string DataView_RemoveExternalObject
Definition SR.cs:628
static string Xml_CircularComplexType
Definition SR.cs:84
static string DataColumn_CannotSimpleContentType
Definition SR.cs:312
static string DataTableReader_InvalidDataTableReader
Definition SR.cs:664
static string DataColumn_AutoIncrementSeed
Definition SR.cs:260
static string DataColumn_OrdinalExceedMaximun
Definition SR.cs:338
static string DataTable_AlreadyInTheDataSet
Definition SR.cs:548
static string DataRelation_LoopInNestedRelations
Definition SR.cs:446
static string DataRow_MultipleParents
Definition SR.cs:504
static string DataColumn_ReadOnlyAndExpression
Definition SR.cs:274
static string DataTable_MissingPrimaryKey
Definition SR.cs:526
static string Xml_CanNotDeserializeObjectType
Definition SR.cs:106
static string DataRelation_ForeignDataSet
Definition SR.cs:410
static string DataRelation_TableCantBeNestedInTwoTables
Definition SR.cs:444
static string DataTable_InvalidSortString
Definition SR.cs:528
static string Xml_MultipleTargetConverterEmpty
Definition SR.cs:90
static string DataTable_ForeignPrimaryKey
Definition SR.cs:518
static string DataRow_ValuesArrayLength
Definition SR.cs:472
static string Xml_MultipleTargetConverterError
Definition SR.cs:88
static string DataRelation_DataSetMismatch
Definition SR.cs:416
static string DataColumns_AddDuplicate2
Definition SR.cs:242
static string DataRelation_ColumnsTypeMismatch
Definition SR.cs:396
static string Data_ArgumentContainsNull
Definition SR.cs:226
static string DataRelation_GetParentRowTableMismatch
Definition SR.cs:412
static string DataConstraint_NotInTheTable
Definition SR.cs:348
static string DataSet_SetNameToEmpty
Definition SR.cs:508
static string DataConstraint_ParentValues
Definition SR.cs:360
static string DataRow_DeleteInRowDeleting
Definition SR.cs:470
static string Xml_SimpleTypeNotSupported
Definition SR.cs:50
static string DataTable_CanNotRemoteDataTable
Definition SR.cs:532
static string DataConstraint_UniqueViolation
Definition SR.cs:356
static string DataTable_DuplicateName
Definition SR.cs:538
static string DataConstraint_ForeignKeyViolation
Definition SR.cs:374
static string DataColumn_CannotSimpleContent
Definition SR.cs:314
static string DataColumn_CannotSetDateTimeModeForNonDateTimeColumns
Definition SR.cs:328
static string DataColumn_ChangeDataType
Definition SR.cs:264
static string DataRow_AlreadyRemoved
Definition SR.cs:502
static string Xml_InvalidField
Definition SR.cs:70
Definition SR.cs:7
string? FullName
Definition Type.cs:47
TypeCode
Definition TypeCode.cs:4