Skip Headers

Oracle® Data Provider for .NET Developer's Guide
10g Release 1 (10.1)

Part Number B10117-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Feedback

Go to previous page
Previous
Go to next page
Next
View PDF

ODP.NET Type Exceptions

This section covers the ODP.NET Type exceptions.

OracleTypeException Class

The OracleTypeException is the base exception class for handling exceptions that occur in the ODP.NET Types classes.


Class Inheritance

Object

  Exception

    SystemException

      OracleTypeException


Declaration
// C#
public class OracleTypeException : SystemException

Thread Safety

All public static methods are thread-safe, although instance methods do not guarantee thread safety.


Requirements

Namespace: Oracle.DataAccess.Types

Assembly: Oracle.DataAccess.dll

OracleTypeException Members

OracleTypeException members are listed in the following tables:


OracleTypeException Constructors

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)


OracleTypeException Static Methods

The OracleTypeException static methods are listed in Table 5-127.

Table 5-127 OracleTypeException Static Methods

Methods Description
Equals Inherited from Object (Overloaded)


OracleTypeException Properties

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


OracleTypeException Methods

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

OracleTypeException Constructors

The OracleTypeException constructors create new instances of the OracleTypeException class.


Overload List:

OracleTypeException(string)

This constructor creates a new instance of the OracleTypeException class with the specified error message, errMessage.


Declaration
// C#
public OracleTypeException (string errMessage); 

Parameters

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.


Declaration
// C#
public OracleTypeException (SerializationInfo si, StreamingContext sc);

Parameters

OracleTypeException Static Methods

The OracleTypeException static methods are listed in Table 5-130.

Table 5-130 OracleTypeException Static Methods

Methods Description
Equals Inherited from Object (Overloaded)

OracleTypeException Properties

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


Message

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.


Source

Overrides Exception

This property specifies the name of the data provider that generates the error.


Declaration
// C#
public override string Source {get;}

Property Value

Oracle Data Provider for .NET.

OracleTypeException Methods

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


ToString

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.


OracleNullValueException Class

The OracleNullValueException represents an exception that is thrown when trying to access an ODP.NET Type structure that has a null value.


Class Inheritance

Object

  Exception

    SystemException

      OracleTypeException

        OracleNullValueException


Declaration
// C#
public sealed class OracleNullValueException : OracleTypeException

Thread Safety

All public static methods are thread-safe, although instance methods do not guarantee thread safety.


Requirements

Namespace: Oracle.DataAccess.Types

Assembly: Oracle.DataAccess.dll

OracleNullValueException Members

OracleNullValueException members are listed in the following tables:


OracleNullValueException Constructors

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)


OracleNullValueException Static Methods

The OracleNullValueException static methods are listed in Table 5-134.

Table 5-134 OracleNullValueException Static Methods

Methods Description
Equals Inherited from Object (Overloaded)


OracleNullValueException Properties

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


OracleNullValueException Methods

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

OracleNullValueException Constructors

The OracleNullValueException constructors create new instances of the OracleNullValueException class.


Overload List:

OracleNullValueException()

This constructor creates a new instance of the OracleNullValueException class with its default properties.


Declaration
// C#
public OracleNullValueException();

OracleNullValueException(string)

This constructor creates a new instance of the OracleNullValueException class with the specified error message, errMessage.


Declaration
// C#
public OracleNullValueException (string errMessage);

Parameters

OracleNullValueException Static Methods

The OracleNullValueException static methods are listed in Table 5-137.

Table 5-137 OracleNullValueException Static Methods

Methods Description
Equals Inherited from Object (Overloaded)

OracleNullValueException Properties

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

OracleNullValueException Methods

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


OracleTruncateException Class

The OracleTruncateException class represents an exception that is thrown when truncation in a ODP.NET Types class occurs.


Class Inheritance

Object

  Exception

    SystemException

      OracleTypeException

        OracleTruncateException


Declaration
// C#
public sealed class OracleTruncateException : OracleTypeException

Thread Safety

All public static methods are thread-safe, although instance methods do not guarantee thread safety.


Requirements

Namespace: Oracle.DataAccess.Types

Assembly: Oracle.DataAccess.dll

OracleTruncateException Members

OracleTruncateException members are listed in the following tables:


OracleTruncateException Constructors

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)


OracleTruncateException Static Methods

The OracleTruncateException static methods are listed in Table 5-141.

Table 5-141 OracleTruncateException Static Methods

Methods Description
Equals Inherited from Object (Overloaded)


OracleTruncateException Properties

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


OracleTruncateException Methods

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

OracleTruncateException Constructors

The OracleTruncateException constructors create new instances of the OracleTruncateException class


Overload List:

OracleTruncateException()

This constructor creates a new instance of the OracleTruncateException class with its default properties.


Declaration
// C#
public OracleTruncateException();

OracleTruncateException(string)

This constructor creates a new instance of the OracleTruncateException class with the specified error message, errMessage.


Declaration
// C#
public OracleTruncateException (string errMessage);

Parameters

OracleTruncateException Static Methods

The OracleTruncateException static methods are listed in Table 5-144.

Table 5-144 OracleTruncateException Static Methods

Methods Description
Equals Inherited from Object (Overloaded)

OracleTruncateException Properties

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

OracleTruncateException Methods

The OracleTruncateException methods are listed in Table 5-146.

Table 5-146 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