The event handler receives an argument of type OracleLoaderErrorEventArgs containing data related to this event. The following OracleLoaderErrorEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Column | Gets column number where an error occurred. |
Exception | Gets the OracleException instance that an OracleLoader throws. |
Ignore | Gets or sets whether the current error will be ignored or not. |
Row | Gets row number where an error occurred. |
The event handler receives an argument of OracleLoaderErrorEventArgs type containing data related to this event. The following OracleLoaderErrorEventArgs properties provide information specific to this event:
Property | Description |
---|---|
OracleLoaderErrorEventArgs.Column | Gets column where an error occurred. |
OracleLoaderErrorEventArgs.Row | Gets row where an error occurred. |
OracleLoaderErrorEventArgs.Exception | Gets OracleException object with error specific information. |
OracleLoaderErrorEventArgs.Ignore | Specifies whether current error will be ignored. |
Clients that want to process errors raised by the server should create an OracleLoaderErrorEventHandler delegate to listen to this event.
The following sample demonstrates using the Error event. Perform the following script against the database before executing the code:
CREATE TABLE DEPT( DEPTNO INTEGER PRIMARY KEY, DNAME VARCHAR(14), LOC VARCHAR(13) ); INSERT INTO DEPT VALUES (10,'ACCOUNTING','NEW YORK'); INSERT INTO DEPT VALUES (20,'RESEARCH','DALLAS'); INSERT INTO DEPT VALUES (30,'SALES','CHICAGO'); INSERT INTO DEPT VALUES (40,'OPERATIONS','BOSTON');
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2