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(string s);  

   public DataException(string s, Exception innerException);  

// Protected Constructors

   protected DataException(System.Runtime.Serialization.SerializationInfo info,

        System.Runtime.Serialization.StreamingContext context);  

}

Hierarchy

System.Object System.Exception(System.Runtime.Serialization.ISerializable) System.SystemException DataException

Subclasses

Multiple types

Get ADO.NET in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.