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)
public DataAccessException( string message, EDataProviderType providerType, string providerInfo, Exception innerException )
public: DataAccessException( String^ message, EDataProviderType providerType, String^ providerInfo, Exception^ 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