| Oracle® Data Provider for .NET Developer's Guide 10g Release 1 (10.1) Part Number B10117-01 |
|
|
View PDF |
This section covers the ODP.NET Type exceptions.
The OracleTypeException is the base exception class for handling exceptions that occur in the ODP.NET Types classes.
Object
Exception
SystemException
OracleTypeException
// C# public class OracleTypeException : SystemException
All public static methods are thread-safe, although instance methods do not guarantee thread safety.
Namespace: Oracle.DataAccess.Types
Assembly: Oracle.DataAccess.dll
OracleTypeException members are listed in the following tables:
The OracleTypeException constructors are listed in Table 5-126.
Table 5-126 OracleTypeException Constructor
| Constructor | Description |
|---|---|
| OracleTypeException Constructors | Creates a new instance of the OracleTypeException class (Overloaded) |
The OracleTypeException static methods are listed in Table 5-127.
Table 5-127 OracleTypeException Static Methods
| Methods | Description |
|---|---|
Equals |
Inherited from Object (Overloaded) |
The OracleTypeException properties are listed in Table 5-128.
Table 5-128 OracleTypeException Properties
| Properties | Description |
|---|---|
HelpLink |
Inherited from Exception |
InnerException |
Inherited from Exception |
| Message |
Specifies the error messages that occur in the exception |
| Source |
Specifies the name of the data provider that generates the error |
StackTrace |
Inherited from Exception |
TargetSite |
Inherited from Exception |
The OracleTypeException methods are listed in Table 5-129.
Table 5-129 OracleTypeException Methods
| Methods | Description |
|---|---|
Equals |
Inherited from Object (Overloaded) |
GetBaseException |
Inherited from Exception |
GetHashCode |
Inherited from Object |
GetObjectData |
Inherited from Exception |
GetType |
Inherited from Object |
| ToString |
Returns the fully qualified name of this exception |
The OracleTypeException constructors create new instances of the OracleTypeException class.
This constructor creates a new instance of the OracleTypeException class with the specified error message, errMessage.
OracleTypeException(SerializationInfo, StreamContext)
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.
// C# public OracleTypeException (string errMessage);
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.
// C# public OracleTypeException (SerializationInfo si, StreamingContext sc);
si
The specified serialization information.
sc
The specified streaming context.
The OracleTypeException static methods are listed in Table 5-130.
Table 5-130 OracleTypeException Static Methods
| Methods | Description |
|---|---|
Equals |
Inherited from Object (Overloaded) |
The OracleTypeException properties are listed in Table 5-131.
Table 5-131 OracleTypeException Properties
| Properties | Description |
|---|---|
HelpLink |
Inherited from Exception |
InnerException |
Inherited from Exception |
| Message |
Specifies the error messages that occur in the exception |
| Source |
Specifies the name of the data provider that generates the error |
StackTrace |
Inherited from Exception |
TargetSite |
Inherited from Exception |
Overrides Exception
This property specifies the error messages that occur in the exception.
// C#
public override string Message {get;}
An error message.
Overrides Exception
This property specifies the name of the data provider that generates the error.
// C#
public override string Source {get;}
Oracle Data Provider for .NET.
The OracleTypeException methods are listed in Table 5-132.
Table 5-132 OracleTypeException Methods
| Methods | Description |
|---|---|
Equals |
Inherited from Object (Overloaded) |
GetBaseException |
Inherited from Exception |
GetHashCode |
Inherited from Object |
GetObjectData |
Inherited from Exception |
GetType |
Inherited from Object |
| ToString |
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.
// C# public override string ToString();
The fully qualified name of this exception.
The OracleNullValueException represents an exception that is thrown when trying to access an ODP.NET Type structure that has a null value.
Object
Exception
SystemException
OracleTypeException
OracleNullValueException
// C# public sealed class OracleNullValueException : OracleTypeException
All public static methods are thread-safe, although instance methods do not guarantee thread safety.
Namespace: Oracle.DataAccess.Types
Assembly: Oracle.DataAccess.dll
OracleNullValueException members are listed in the following tables:
The OracleNullValueException constructors are listed in Table 5-133.
Table 5-133 OracleNullValueException Constructors
| Constructor | Description |
|---|---|
| OracleNullValueException Constructors |
Creates a new instance of the OracleNullValueException class (Overloaded) |
The OracleNullValueException static methods are listed in Table 5-134.
Table 5-134 OracleNullValueException Static Methods
| Methods | Description |
|---|---|
Equals |
Inherited from Object (Overloaded) |
The OracleNullValueException properties are listed in Table 5-135.
Table 5-135 OracleNullValueException Properties
| Properties | Description |
|---|---|
HelpLink |
Inherited from Exception |
InnerException |
Inherited from Exception |
Message |
Inherited from OracleTypeException |
Source |
Inherited from OracleTypeException |
StackTrace |
Inherited from Exception |
TargetSite |
Inherited from Exception |
The OracleNullValueException methods are listed in Table 5-136.
Table 5-136 OracleNullValueException Methods
| Methods | Description |
|---|---|
Equals |
Inherited from Object (Overloaded) |
GetBaseException |
Inherited from Exception |
GetHashCode |
Inherited from Object |
GetObjectData |
Inherited from Exception |
GetType |
Inherited from Object |
ToString |
Inherited from OracleTypeException |
The OracleNullValueException constructors create new instances of the OracleNullValueException class.
This constructor creates a new instance of the OracleNullValueException class with its default properties.
OracleNullValueException(string)
This constructor creates a new instance of the OracleNullValueException class with the specified error message, errMessage.
This constructor creates a new instance of the OracleNullValueException class with its default properties.
// C# public OracleNullValueException();
This constructor creates a new instance of the OracleNullValueException class with the specified error message, errMessage.
// C# public OracleNullValueException (string errMessage);
errMessage
The specified error message.
The OracleNullValueException static methods are listed in Table 5-137.
Table 5-137 OracleNullValueException Static Methods
| Methods | Description |
|---|---|
Equals |
Inherited from Object (Overloaded) |
The OracleNullValueException properties are listed in Table 5-138.
Table 5-138 OracleNullValueException Properties
| Properties | Description |
|---|---|
HelpLink |
Inherited from Exception |
InnerException |
Inherited from Exception |
Message |
Inherited from OracleTypeException |
Source |
Inherited from OracleTypeException |
StackTrace |
Inherited from Exception |
TargetSite |
Inherited from Exception |
The OracleNullValueException methods are listed in Table 5-139.
Table 5-139 OracleNullValueException Methods
| Methods | Description |
|---|---|
Equals |
Inherited from Object (Overloaded) |
GetBaseException |
Inherited from Exception |
GetHashCode |
Inherited from Object |
GetObjectData |
Inherited from Exception |
GetType |
Inherited from Object |
ToString |
Inherited from OracleTypeException |
The OracleTruncateException class represents an exception that is thrown when truncation in a ODP.NET Types class occurs.
Object
Exception
SystemException
OracleTypeException
OracleTruncateException
// C# public sealed class OracleTruncateException : OracleTypeException
All public static methods are thread-safe, although instance methods do not guarantee thread safety.
Namespace: Oracle.DataAccess.Types
Assembly: Oracle.DataAccess.dll
OracleTruncateException members are listed in the following tables:
The OracleTruncateException constructors are listed in Table 5-140.
Table 5-140 OracleTruncateException Constructors
| Constructor | Description |
|---|---|
| OracleTruncateException Constructors |
Creates a new instance of the OracleTruncateException class (Overloaded) |
The OracleTruncateException static methods are listed in Table 5-141.
Table 5-141 OracleTruncateException Static Methods
| Methods | Description |
|---|---|
Equals |
Inherited from Object (Overloaded) |
The OracleTruncateException properties are listed in Table 5-142.
Table 5-142 OracleTruncateException Properties
| Properties | Description |
|---|---|
HelpLink |
Inherited from Exception |
InnerException |
Inherited from Exception |
Message |
Inherited from OracleTypeException |
Source |
Inherited from OracleTypeException |
StackTrace |
Inherited from Exception |
TargetSite |
Inherited from Exception |
The OracleTruncateException methods are listed in Table 5-143.
Table 5-143 OracleTruncateException Methods
| Methods | Description |
|---|---|
Equals |
Inherited from Object (Overloaded) |
GetBaseException |
Inherited from Exception |
GetHashCode |
Inherited from Object |
GetObjectData |
Inherited from Exception |
GetType |
Inherited from Object |
ToString |
Inherited from OracleTypeException |
The OracleTruncateException constructors create new instances of the OracleTruncateException class
This constructor creates a new instance of the OracleTruncateException class with its default properties.
OracleTruncateException(string)
This constructor creates a new instance of the OracleTruncateException class with the specified error message, errMessage.
This constructor creates a new instance of the OracleTruncateException class with its default properties.
// C# public OracleTruncateException();
This constructor creates a new instance of the OracleTruncateException class with the specified error message, errMessage.
// C# public OracleTruncateException (string errMessage);
errMessage
The specified error message.
The OracleTruncateException static methods are listed in Table 5-144.
Table 5-144 OracleTruncateException Static Methods
| Methods | Description |
|---|---|
Equals |
Inherited from Object (Overloaded) |
The OracleTruncateException properties are listed in Table 5-145.
Table 5-145 OracleTruncateException Properties
| Properties | Description |
|---|---|
HelpLink |
Inherited from Exception |
InnerException |
Inherited from Exception |
Message |
Inherited from OracleTypeException |
Source |
Inherited from OracleTypeException |
StackTrace |
Inherited from Exception |
TargetSite |
Inherited from Exception |
The OracleTruncateException methods are listed in Table 5-146.