Share via


CommerceException Constructor (String, COMException)

Initializes a new instance of the CommerceException class with the specified error message and inner COM exception.

Namespace:  Microsoft.CommerceServer.Runtime
Assembly:  Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub New ( _
    msg As String, _
    comException As COMException _
)
'Usage
Dim msg As String
Dim comException As COMException

Dim instance As New CommerceException(msg, comException)
public CommerceException(
    string msg,
    COMException comException
)
public:
CommerceException(
    String^ msg, 
    COMException^ comException
)
public function CommerceException(
    msg : String, 
    comException : COMException
)

Parameters

Remarks

Use this method to create a new instance of the CommerceException class, the base type for Commerce Server exceptions.

Permissions

See Also

Reference

CommerceException Class

CommerceException Members

CommerceException Overload

Microsoft.CommerceServer.Runtime Namespace