DataException Hierarchy

The following table lists the classes derived from System.Data.DataException .

Class Description
System.Data.ConstraintException Represents the exception that is thrown when attempting an action that violates a constraint.
System.Data.DeletedRowInaccessibleException Represents the exception that is thrown when an action is tried on a DataRow that has been deleted.
System.Data.Design.TypedDataSetGeneratorException The exception that is thrown when a name conflict occurs while generating a strongly typed DataSet.
System.Data.DuplicateNameException Represents the exception that is thrown when a duplicate database object name is encountered during an add operation in a DataSet -related object.
System.Data.InRowChangingEventException Represents the exception that is thrown when you call the EndEdit method within the RowChanging event.
System.Data.InvalidConstraintException Represents the exception that is thrown when incorrectly trying to create or access a relation.
System.Data.InvalidExpressionException Represents the exception that is thrown when you try to add a DataColumn that contains an invalid Expression to a DataColumnCollection.
System.Data.MissingPrimaryKeyException Represents the exception that is thrown when you try to access a row in a table that has no primary key.
System.Data.NoNullAllowedException Represents the exception that is thrown when you try to insert a null value into a column where AllowDBNull is set to false.
System.Data.ReadOnlyException Represents the exception that is thrown when you try to change the value of a read-only column.
System.Data.RowNotInTableException Represents the exception that is thrown when you try to perform an operation on a DataRow that is not in a DataTable.
System.Data.SqlServerCe.SqlCeException The exception thrown when the underlying provider returns a warning or error from a SQL Server Mobile data source. This class cannot be inherited.
System.Data.StrongTypingException The exception that is thrown by a strongly typed DataSet when the user accesses a DBNull value.
System.Data.TypedDataSetGeneratorException The exception that is thrown when a name conflict occurs while generating a strongly typed DataSet.
System.Data.VersionNotFoundException Represents the exception that is thrown when you try to return a version of a DataRow that has been deleted.

Community Additions

Show: