Share via


DataProviderException Class

Represents an exception thrown when a DDEX provider error occurs.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class DataProviderException _
    Inherits ApplicationException
'Usage
Dim instance As DataProviderException
[SerializableAttribute]
public class DataProviderException : ApplicationException
[SerializableAttribute]
public ref class DataProviderException : public ApplicationException
public class DataProviderException extends ApplicationException

Remarks

DataProviderException is typically thrown by the DDEX services and runtime components when it encounters an inconsistency or something unexpected when calling into a DDEX provider.

This method uses HRESULT E_UNEXPECTED, which has the hex value 0x8000FFFF.

When an exception of this type is thrown, the actual error message is not propagated with the exception. Instead, the actual error is logged to the application log on the local machine and a generic message is placed in the exception.

This class inherits from ApplicationException.

Inheritance Hierarchy

System.Object
  System.Exception
    System.ApplicationException
      Microsoft.VisualStudio.Data.DataProviderException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

DataProviderException Members

Microsoft.VisualStudio.Data Namespace

DataProvider