| Oracle® Data Provider for .NET Developer's Guide 12c Release 1 (12.1.0.1.0) E41125-02 |
|
![]() Previous |
![]() Next |
The OracleTypeException is the base exception class for handling exceptions that occur in the ODP.NET Types classes.
Class Inheritance
System.Object
System.Exception
System.SystemException
Oracle.DataAccess.Types.OracleTypeException
Declaration
// C# public class OracleTypeException : SystemException
Requirements
| Provider | ODP.NET, Unmanaged Driver | ODP.NET, Managed Driver |
| Assembly | Oracle.DataAccess.dll |
Oracle.ManagedDataAccess.dll |
| Namespace | Oracle.DataAccess.Types |
Oracle.ManagedDataAccess.Types |
| .NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5 | 4.0, 4.5 |
Thread Safety
All public static methods are thread-safe, although instance methods do not guarantee thread safety.
OracleTypeException members are listed in the following tables.
OracleTypeException Constructors
The OracleTypeException constructors are listed in Table 15-1.
Table 15-1 OracleTypeException Constructor
| Constructor | Description |
|---|---|
|
Creates a new instance of the |
OracleTypeException Static Methods
The OracleTypeException static methods are listed in Table 15-2.
Table 15-2 OracleTypeException Static Methods
| Methods | Description |
|---|---|
|
|
Inherited from |
OracleTypeException Properties
The OracleTypeException properties are listed in Table 15-3.
Table 15-3 OracleTypeException Properties
| Properties | Description |
|---|---|
|
|
Inherited from |
|
|
Inherited from |
|
|
Specifies the error messages that occur in the exception |
|
|
Specifies the name of the data provider that generates the error |
|
|
Inherited from |
|
|
Inherited from |
OracleTypeException Methods
The OracleTypeException methods are listed in Table 15-4.
Table 15-4 OracleTypeException Methods
| Methods | Description |
|---|---|
|
|
Inherited from |
|
|
Inherited from |
|
|
Inherited from |
|
|
Inherited from |
|
|
Inherited from |
|
|
Returns the fully qualified name of this exception |
The OracleTypeException constructors create new instances of the OracleTypeException class.
Overload List:
This constructor creates a new instance of the OracleTypeException class with the specified error message, errMessage.
OracleTypeException(SerializationInfo, StreamingContext)
This constructor creates a new instance of the OracleTypeException class with the specified serialization information, si, and the specified streaming context, sc.
This constructor creates a new instance of the OracleTypeException class with the specified error message, errMessage.
Declaration
// C#
public OracleTypeException (string errMessage);
Parameters
errMessage
The specified error message.
This constructor creates a new instance of the OracleTypeException class with the specified serialization information, si, and the specified streaming context, sc.
Declaration
// C# protected OracleTypeException (SerializationInfo si, StreamingContext sc);
Parameters
si
The specified serialization information.
sc
The specified streaming context.
The OracleTypeException static methods are listed in Table 15-5.
The OracleTypeException properties are listed in Table 15-6.
Table 15-6 OracleTypeException Properties
| Properties | Description |
|---|---|
|
|
Inherited from |
|
|
Inherited from |
|
|
Specifies the error messages that occur in the exception |
|
|
Specifies the name of the data provider that generates the error |
|
|
Inherited from |
|
|
Inherited from |
Overrides Exception
This property specifies the error messages that occur in the exception.
Declaration
// C#
public override string Message {get;}
Property Value
An error message.
The OracleTypeException methods are listed in Table 15-7.
Table 15-7 OracleTypeException Methods
| Methods | Description |
|---|---|
|
|
Inherited from |
|
|
Inherited from |
|
|
Inherited from |
|
|
Inherited from |
|
|
Inherited from |
|
|
Returns the fully qualified name of this exception |
Overrides Exception
This method returns the fully qualified name of this exception, the error message in the Message property, the InnerException.ToString() message, and the stack trace.
Declaration
// C# public override string ToString();
Return Value
The fully qualified name of this exception.