System.Data.OleDb.OleDbException Class

The exception that is thrown when the underlying provider returns a warning or error for an OLE DB data source. This class cannot be inherited.

See Also: OleDbException Members


public sealed class OleDbException : System.Data.Common.DbException


This class is created whenever the .NET Framework Data Provider for OLE DB encounters an error generated from the server. (Client side errors are thrown as standard common language runtime exceptions.) System.Data.OleDb.OleDbException always contains at least one instance of System.Data.OleDb.OleDbError.

If the severity of the error is too great, the server may close the System.Data.OleDb.OleDbConnection. However, the user can reopen the connection and continue.

For general information about handling exceptions for a .NET Framework data provider, see System.Data.SqlClient.SqlException.


Namespace: System.Data.OleDb
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,