System\Data\Common\SQLConvert.cs (16)
26_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlByte)),
45_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlInt16)),
68_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlInt32)),
93_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlInt64)),
126_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlDouble)),
156_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlDecimal)),
187_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlSingle)),
216_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlMoney)),
235_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlDateTime)),
253_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlBoolean)),
271_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlGuid)),
289_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlBinary)),
307_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlString)),
323_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlChars)),
339_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlBytes)),
429throw ExceptionBuilder.ConvertFailed(valueType, type);
System\Data\DataColumn.cs (52)
131throw ExceptionBuilder.ArgumentNull(nameof(dataType));
137throw ExceptionBuilder.ColumnTypeNotSupported();
233throw ExceptionBuilder.AutoIncrementAndExpression();
238throw ExceptionBuilder.AutoIncrementAndDefaultValue();
245throw ExceptionBuilder.AutoIncrementCannotSetIfHasData(DataType.Name);
369throw ExceptionBuilder.ColumnNameRequired();
433throw ExceptionBuilder.InvalidPrefix(value);
487throw ExceptionBuilder.CantChangeDataType();
491throw ExceptionBuilder.NullDataType();
496throw ExceptionBuilder.ColumnTypeNotSupported();
500throw ExceptionBuilder.ColumnsTypeMismatch();
537throw ExceptionBuilder.DefaultValueDataType(ColumnName, DefaultValue.GetType(), value, ex);
541throw ExceptionBuilder.DefaultValueDataType(ColumnName, DefaultValue.GetType(), value, ex);
549throw ExceptionBuilder.CannotSetSimpleContentType(ColumnName, value);
608throw ExceptionBuilder.CannotSetDateTimeModeForNonDateTimeColumns();
616throw ExceptionBuilder.CantChangeDateTimeMode(_dateTimeMode, value);
627throw ExceptionBuilder.CantChangeDateTimeMode(_dateTimeMode, value);
631throw ExceptionBuilder.InvalidDateTimeMode(value);
678throw ExceptionBuilder.DefaultValueAndAutoIncrement();
691throw ExceptionBuilder.DefaultValueColumnDataType(ColumnName, newDefaultValue.GetType(), DataType, ex);
737throw ExceptionBuilder.ExpressionAndUnique();
747throw ExceptionBuilder.ExpressionAndConstraint(this, _table.Constraints[i]);
759ExceptionBuilder.TraceExceptionForCapture(e);
761throw ExceptionBuilder.ExpressionAndReadOnly();
770throw ExceptionBuilder.ExpressionCircular();
798ExceptionBuilder.TraceExceptionForCapture(e1);
820ExceptionBuilder.TraceExceptionWithoutRethrow(e2);
927throw ExceptionBuilder.CannotSetMaxLength2(this);
931throw ExceptionBuilder.HasToBeStringType(this);
941throw ExceptionBuilder.CannotSetMaxLength(this, value);
982throw ExceptionBuilder.CannotChangeNamespace(ColumnName);
1004throw ExceptionBuilder.ColumnNotInAnyTable();
1062throw ExceptionBuilder.ReadOnlyAndExpression();
1146ExceptionBuilder.TraceExceptionForCapture(e);
1147throw ExceptionBuilder.SetFailed(value, this, DataType, e);
1188ExceptionBuilder.TraceExceptionForCapture(e);
1189throw ExceptionBuilder.SetFailed(value!, this, DataType, e);
1222throw ExceptionBuilder.UniqueAndExpression();
1316throw ExceptionBuilder.CannotSetSimpleContent(ColumnName, _dataType);
1321throw ExceptionBuilder.CannotAddColumn3();
1325throw ExceptionBuilder.CannotAddColumn4(ColumnName);
1400throw ExceptionBuilder.LongerThanMaxLength(this);
1417throw ExceptionBuilder.NullKeyValues(ColumnName);
1434throw ExceptionBuilder.NullKeyValues(ColumnName);
1441throw ExceptionBuilder.NullKeyValues(ColumnName);
1455throw ExceptionBuilder.NullValues(ColumnName);
1466throw ExceptionBuilder.NonUniqueValues(ColumnName);
1693errorText ??= ExceptionBuilder.MaxLengthViolationText(ColumnName);
1703errorText ??= ExceptionBuilder.MaxLengthViolationText(ColumnName);
1720string errorText = ExceptionBuilder.NotAllowDBNullViolationText(ColumnName);
1939throw ExceptionBuilder.AutoIncrementSeed();
2020throw ExceptionBuilder.AutoIncrementSeed();
System\Data\DataRow.cs (42)
218throw ExceptionBuilder.NestedCircular(_table.TableName);
290throw ExceptionBuilder.EditInRowChanging();
294throw ExceptionBuilder.ReadOnly(column.ColumnName);
311throw ExceptionBuilder.ColumnNotInTheTable(column.ColumnName, _table.TableName);
316throw ExceptionBuilder.ReadOnly(column.ColumnName);
324throw ExceptionBuilder.CannotSetToNull(column);
438throw ExceptionBuilder.ArgumentNull(nameof(ItemArray));
442throw ExceptionBuilder.ValueArrayLength();
461throw ExceptionBuilder.ReadOnly(column.ColumnName);
477throw ExceptionBuilder.ColumnNotInTheTable(column.ColumnName, _table.TableName);
482throw ExceptionBuilder.ReadOnly(column.ColumnName);
495throw ExceptionBuilder.CannotSetToNull(column);
581throw ExceptionBuilder.BeginEditInRowChanging();
602throw ExceptionBuilder.DeletedRowInaccessible();
622throw ExceptionBuilder.CancelEditInRowChanging();
634throw ExceptionBuilder.ArgumentNull(nameof(column));
639throw ExceptionBuilder.ColumnNotInTheTable(column.ColumnName, _table.TableName);
650throw ExceptionBuilder.RowNotInTheTable();
661throw ExceptionBuilder.DeleteInRowDeleting();
680throw ExceptionBuilder.EndEditInRowChanging();
711throw ExceptionBuilder.ColumnOutOfRange(columnIndex);
826throw ExceptionBuilder.RowNotInTheDataSet();
830throw ExceptionBuilder.RelationForeignTable(relation.ParentTable.TableName, _table.TableName);
842throw ExceptionBuilder.ColumnNotInTheTable(columnName, _table.TableName);
870throw ExceptionBuilder.RelationForeignRow();
875throw ExceptionBuilder.GetParentRowTableMismatch(relation.ChildTable.TableName, _table.TableName);
932throw ExceptionBuilder.RowNotInTheDataSet();
937throw ExceptionBuilder.GetParentRowTableMismatch(relation.ChildTable.TableName, _table.TableName);
968throw ExceptionBuilder.NoCurrentData();
986ExceptionBuilder.RowRemovedFromTheTable() :
987ExceptionBuilder.DeletedRowInaccessible();
994throw ExceptionBuilder.NoOriginalData();
1003throw ExceptionBuilder.NoProposedData();
1016_ => throw ExceptionBuilder.InvalidRowVersion(),
1101_ => throw ExceptionBuilder.InvalidRowVersion(),
1199throw ExceptionBuilder.UDTImplementsIChangeTrackingButnotIRevertible(dc.DataType.AssemblyQualifiedName!);
1325throw ExceptionBuilder.ParentRowNotInTheDataSet();
1330throw ExceptionBuilder.SetParentRowTableMismatch(relation.ChildKey.Table.TableName, _table.TableName);
1335throw ExceptionBuilder.SetParentRowTableMismatch(relation.ParentKey.Table.TableName, parentRow._table.TableName);
1356throw ExceptionBuilder.SetParentRowTableMismatch(relation.ChildKey.Table.TableName, _table.TableName);
1372throw ExceptionBuilder.SetAddedAndModifiedCalledOnnonUnchanged();
1389throw ExceptionBuilder.SetAddedAndModifiedCalledOnnonUnchanged();
System\Data\XDRSchema.cs (14)
151throw ExceptionBuilder.InvalidAttributeValue("content", value);
288throw ExceptionBuilder.UndefinedDatatype(name);
310throw ExceptionBuilder.InvalidAttributeValue("type", dt);
315throw ExceptionBuilder.MissingAttribute("type", Keywords.DT_VALUES);
329throw ExceptionBuilder.MissingAttribute("Element", Keywords.NAME);
336throw ExceptionBuilder.MissingAttribute("Element", Keywords.TYPE);
373throw ExceptionBuilder.DuplicateDeclaration(strName);
379throw ExceptionBuilder.DuplicateDeclaration(strName);
398throw ExceptionBuilder.UndefinedDatatype(strType);
490throw ExceptionBuilder.CannotConvert(strDefault, type.FullName!);
501throw ExceptionBuilder.AttributeValues(nameof(minOccurs), "0", "1");
515throw ExceptionBuilder.AttributeValues(nameof(maxOccurs), "1", Keywords.STAR);
600throw ExceptionBuilder.ElementTypeNotFound(list[i]);
655throw ExceptionBuilder.DuplicateDeclaration(typeName);
System\Data\XMLSchema.cs (43)
64throw ExceptionBuilder.CannotConvert(value, type.FullName);
96throw ExceptionBuilder.InvalidAttributeValue(attrName, value);
233throw ExceptionBuilder.InvalidDuplicateNamedSimpleTypeDelaration(tmpDataSimpleType.SimpleTypeQualifiedName!, errorStr);
311throw ExceptionBuilder.CannotConvert(value, type.FullName);
451throw ExceptionBuilder.RelationParentNameMissing(strName);
456throw ExceptionBuilder.RelationChildNameMissing(strName);
461throw ExceptionBuilder.RelationTableKeyMissing(strName);
466throw ExceptionBuilder.RelationChildKeyMissing(strName);
472throw ExceptionBuilder.MismatchKeyLength();
483throw ExceptionBuilder.ElementTypeNotFound(parentName);
488throw ExceptionBuilder.ElementTypeNotFound(childName);
494throw ExceptionBuilder.ElementTypeNotFound(parentNames[i]);
497throw ExceptionBuilder.ElementTypeNotFound(childNames[i]);
740throw ExceptionBuilder.IsDataSetAttributeMissingInSchema();
744throw ExceptionBuilder.TooManyIsDataSetAttributesInSchema();
1043throw ExceptionBuilder.CircularComplexType(ct.Name!);
1189throw ExceptionBuilder.InvalidField(field);
1194throw ExceptionBuilder.InvalidField(field);
1230throw ExceptionBuilder.InvalidAttributeValue(attrName, value);
1297throw ExceptionBuilder.MissingRefer(name);
1303throw ExceptionBuilder.InvalidKey(name);
1393throw ExceptionBuilder.MissingAttribute(Keywords.NAME);
1396throw ExceptionBuilder.DuplicateConstraintRead(name);
1453throw ExceptionBuilder.DuplicateDeclaration(typeName);
1579throw ExceptionBuilder.DuplicateDeclaration(typeName);
1795throw ExceptionBuilder.UndefinedDatatype(xsdTypeName);
1861throw ExceptionBuilder.UndefinedDatatype(name);
1877throw ExceptionBuilder.UndefinedDatatype(dt);
2088throw ExceptionBuilder.CannotConvert(defValue, type.FullName);
2190throw ExceptionBuilder.CannotConvert(defValue, type.FullName);
2250throw ExceptionBuilder.DatatypeNotDefined();
2252throw ExceptionBuilder.UndefinedDatatype(typeNode.Id);
2268throw ExceptionBuilder.ColumnTypeConflict(column.ColumnName);
2337throw ExceptionBuilder.CannotConvert(defValue, type.FullName);
2354throw ExceptionBuilder.CannotConvert(strDefault, type.FullName);
2427throw ExceptionBuilder.DatatypeNotDefined();
2437throw ExceptionBuilder.DatatypeNotDefined();
2439throw ExceptionBuilder.UndefinedDatatype(typeNode.Id);
2454throw ExceptionBuilder.ColumnTypeConflict(column.ColumnName);
2556throw ExceptionBuilder.CannotConvert(strDefault, type.FullName);
2782throw ExceptionBuilder.InvalidSelector(xpath);
2801throw ExceptionBuilder.InvalidSelector(xpath);
2841throw ExceptionBuilder.CannotInstantiateAbstract(node.Name!);