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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.