| Oracle Data Provider for .NET Developer's Guide Release 9.2.0.2 Part Number A96160-01 |
|
Oracle.DataAccess.Client Namespace, 7 of 26
The OracleError class represents an error reported by Oracle.
Object
OracleError
// C# public sealed class OracleError
All public static methods are thread-safe, although instance methods do not guarantee thread safety.
The OracleError class represents a warning or an error reported by Oracle.
// C#
...
try {
cmd.ExecuteNonQuery()
}
catch ( OracleException e ){
OracleError err1 = e.Errors[0];
OracleError err2 = e.Errors[1];
Console.WriteLine("Error 1 Message:", err1.Message);
Console.WriteLine("Error 2 Source:", err2.Source);
}
Namespace: Oracle.DataAccess.Client
Assembly: Oracle.DataAccesss.dll
OracleError members are listed in the following tables:
OracleError static methods are listed in Table 4-50.
| Methods | Description |
|---|---|
|
|
Inherited from |
OracleError methods are listed in Table 4-51.
| Methods | Description |
|---|---|
|
|
Inherited from |
|
|
Inherited from |
|
|
Inherited from |
|
Returns a string representation of the |
OracleError properties are listed in Table 4-52.
OracleError methods are listed in Table 4-53.
| Methods | Description |
|---|---|
|
|
Inherited from |
|
|
Inherited from |
|
|
Inherited from |
|
Returns a string representation of the |
OracleError static methods are listed in Table 4-54.
| Methods | Description |
|---|---|
|
|
Inherited from |
OracleError properties are listed in Table 4-55.
This property specifies the Oracle service name (TNS name) that identifies the Oracle database.
// C# public string DataSource {get;}
A string.
This property specifies the message describing the error.
// C# public string Message {get;}
A string.
This property specifies the Oracle error number.
// C# public int Number {get;}
An int.
This property specifies the stored procedure that causes the error.
// C# public string Procedure {get;}
The stored procedure name.
Represents the stored procedure which creates this OracleError object.
This property specifies the name of the data provider that generates the error.
// C# public string Source {get;}
A string.
OracleError methods are listed in Table 4-56.
| Methods | Description |
|---|---|
|
|
Inherited from |
|
|
Inherited from |
|
|
Inherited from |
|
Returns a string representation of the |
Overrides Object
This method returns a string representation of the OracleError.
// C#
public override string ToString();
Returns a string with the format Ora- error number: Class.Method name error message stack trace information.
ORA-24333: zero iteration count
|
|
![]() Copyright © 2002 Oracle Corporation. All Rights Reserved. |
|