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);
1185ExceptionBuilder.TraceExceptionForCapture(e);
1186throw ExceptionBuilder.SetFailed(value!, this, DataType, e);
1217throw ExceptionBuilder.UniqueAndExpression();
1311throw ExceptionBuilder.CannotSetSimpleContent(ColumnName, _dataType);
1316throw ExceptionBuilder.CannotAddColumn3();
1320throw ExceptionBuilder.CannotAddColumn4(ColumnName);
1392throw ExceptionBuilder.LongerThanMaxLength(this);
1409throw ExceptionBuilder.NullKeyValues(ColumnName);
1426throw ExceptionBuilder.NullKeyValues(ColumnName);
1433throw ExceptionBuilder.NullKeyValues(ColumnName);
1447throw ExceptionBuilder.NullValues(ColumnName);
1458throw ExceptionBuilder.NonUniqueValues(ColumnName);
1685errorText ??= ExceptionBuilder.MaxLengthViolationText(ColumnName);
1695errorText ??= ExceptionBuilder.MaxLengthViolationText(ColumnName);
1712string errorText = ExceptionBuilder.NotAllowDBNullViolationText(ColumnName);
1931throw ExceptionBuilder.AutoIncrementSeed();
2012throw 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);
308throw ExceptionBuilder.CannotConvert(value, type.FullName);
448throw ExceptionBuilder.RelationParentNameMissing(strName);
453throw ExceptionBuilder.RelationChildNameMissing(strName);
458throw ExceptionBuilder.RelationTableKeyMissing(strName);
463throw ExceptionBuilder.RelationChildKeyMissing(strName);
469throw ExceptionBuilder.MismatchKeyLength();
480throw ExceptionBuilder.ElementTypeNotFound(parentName);
485throw ExceptionBuilder.ElementTypeNotFound(childName);
491throw ExceptionBuilder.ElementTypeNotFound(parentNames[i]);
494throw ExceptionBuilder.ElementTypeNotFound(childNames[i]);
737throw ExceptionBuilder.IsDataSetAttributeMissingInSchema();
741throw ExceptionBuilder.TooManyIsDataSetAttributesInSchema();
1039throw ExceptionBuilder.CircularComplexType(ct.Name!);
1185throw ExceptionBuilder.InvalidField(field);
1190throw ExceptionBuilder.InvalidField(field);
1226throw ExceptionBuilder.InvalidAttributeValue(attrName, value);
1293throw ExceptionBuilder.MissingRefer(name);
1299throw ExceptionBuilder.InvalidKey(name);
1389throw ExceptionBuilder.MissingAttribute(Keywords.NAME);
1392throw ExceptionBuilder.DuplicateConstraintRead(name);
1449throw ExceptionBuilder.DuplicateDeclaration(typeName);
1575throw ExceptionBuilder.DuplicateDeclaration(typeName);
1791throw ExceptionBuilder.UndefinedDatatype(xsdTypeName);
1857throw ExceptionBuilder.UndefinedDatatype(name);
1873throw ExceptionBuilder.UndefinedDatatype(dt);
2084throw ExceptionBuilder.CannotConvert(defValue, type.FullName);
2186throw ExceptionBuilder.CannotConvert(defValue, type.FullName);
2246throw ExceptionBuilder.DatatypeNotDefined();
2248throw ExceptionBuilder.UndefinedDatatype(typeNode.Id);
2264throw ExceptionBuilder.ColumnTypeConflict(column.ColumnName);
2333throw ExceptionBuilder.CannotConvert(defValue, type.FullName);
2350throw ExceptionBuilder.CannotConvert(strDefault, type.FullName);
2423throw ExceptionBuilder.DatatypeNotDefined();
2433throw ExceptionBuilder.DatatypeNotDefined();
2435throw ExceptionBuilder.UndefinedDatatype(typeNode.Id);
2450throw ExceptionBuilder.ColumnTypeConflict(column.ColumnName);
2552throw ExceptionBuilder.CannotConvert(strDefault, type.FullName);
2772throw ExceptionBuilder.InvalidSelector(xpath);
2791throw ExceptionBuilder.InvalidSelector(xpath);
2831throw ExceptionBuilder.CannotInstantiateAbstract(node.Name!);