Name
DataException
Synopsis
This is the base class for all exceptions in this namespace.
Provider-specific exception classes (such as
System.Data.SqlClient.SqlException
), which
represent errors that are raised when executing a command or
accessing a connection, don’t derive from this
class.
public class DataException : SystemException { // Public Constructors public DataException( ); public DataException(strings
); public DataException(strings
, ExceptioninnerException
); // Protected Constructors protected DataException(System.Runtime.Serialization.SerializationInfoinfo
, System.Runtime.Serialization.StreamingContextcontext
); }
Hierarchy
System.Object
→
System.Exception(System.Runtime.Serialization.ISerializable)
→
System.SystemException
→
DataException
Subclasses
Multiple types
Get ADO.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.