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
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.