DB2 Version 10.1 for Linux, UNIX, and Windows

DB2Exception Members

DB2Exception overview

Public Properties

Property Description
public property Errors Gets a collection of one or more DB2®Error objects that give detailed information about exceptions generated by the IBM Data Server Provider for .NET.
public property HelpLink (inherited from Exception) Gets or sets a link to the help file associated with this exception.
public property InnerException (inherited from Exception) Gets the Exception instance that caused the current exception.
public property Message Overridden. Gets the text describing the error.
public property Source Overridden. Gets the name of the driver that generated the error.
public property StackTrace (inherited from Exception) Gets a string representation of the frames on the call stack at the time the current exception was thrown.
public property TargetSite (inherited from Exception) Gets the method that throws the current exception.

Public Methods

Method Description
public method Equals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public method GetBaseException (inherited from Exception) When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions.
public method GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public method GetObjectData Overridden. See Exception.GetObjectData.
public method GetType (inherited from Object) Gets the Type of the current instance.
public method ToString (inherited from Exception) Overridden. Creates and returns a string representation of the current exception.

Protected Properties

Property Description
protected property HResult (inherited from Exception) Gets or sets HRESULT, a coded numeric value that is assigned to a specific exception.

Protected Methods

Method Description
protected method Finalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and Microsoft(R) Visual C++(R), finalizers are expressed using destructor syntax.

protected method MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.