iBATIS.NET Class Library DataMapper V1.6.1, DataAccess V1.9.1

ForeignKeyException Constructor (Exception)

Initializes a new instance of the ForeignKeyException class with a reference to the inner exception that is the cause of this exception.

[Visual Basic]
Overloads Public Sub New( _
   ByVal Exception As Exception _
)
[C#]
public ForeignKeyException(
   Exception ex
);

Parameters

ex
The exception that is the cause of the current exception. If the innerException parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

Remarks

This constructor initializes the Message property of the new instance to the Message property of the passed in exception.

See Also

ForeignKeyException Class | IBatisNet.Common.Exceptions Namespace | ForeignKeyException Constructor Overload List