DataAccessException Constructor(String,EDataProviderType,String,Exception)

MNG Profiler

MNG.Direct Documentation


MNG.Profiler.Data.Exceptions Namespace > DataAccessException Class > DataAccessException Constructor : DataAccessException Constructor(String,EDataProviderType,String,Exception)
The message describing what has occurred to have caused this exception.
Indicates what type of data source is being used.
Detailed information about the provider. Ex. Connection strings.
The exception for the deeper cause of the exception.
DataAccessException Constructor(String,EDataProviderType,String,Exception)
Constructor that allows both a descriptive message and an inner exception to be provided. Also allows for specification of the type of data source that this exception arouse from and detailed information about the source.
Syntax
'Declaration
 
Public Function New( _
   ByVal message As String, _
   Optional ByVal providerType As EDataProviderType, _
   Optional ByVal providerInfo As String, _
   Optional ByVal innerException As Exception _
)
'Usage
 
Dim message As String
Dim providerType As EDataProviderType
Dim providerInfo As String
Dim innerException As Exception
 
Dim instance As New DataAccessException(message, providerType, providerInfo, innerException)

Parameters

message
The message describing what has occurred to have caused this exception.
providerType
Indicates what type of data source is being used.
providerInfo
Detailed information about the provider. Ex. Connection strings.
innerException
The exception for the deeper cause of the exception.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also