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

DataMapperException Constructor (String, Exception)

Initializes a new instance of the DataMapperException class with a specified error message and a reference to the inner exception that is the cause of this exception.

[Visual Basic]
Overloads Public Sub New( _
   ByVal String As String, _
   ByVal Exception As Exception _
)
[C#]
public DataMapperException(
   String message,
   Exception inner
);

Parameters

message
The message that describes the error.
inner
The exception that caused the error

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor, or a null reference (Nothing in Visual Basic) if the InnerException property does not supply the inner exception value to the constructor.

See Also

DataMapperException Class | IBatisNet.DataMapper.Exceptions Namespace | DataMapperException Constructor Overload List