Share via


CommerceException Constructor (String)

Initializes a new instance of the CommerceException class with the specified error message.

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

Syntax

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

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

Parameters

  • msg
    Type: System..::.String
    The error message that explains the reason for the exception.

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