BizDataException Constructor (String, BizDataErrorCodes)
Initializes a new instance of the BizDataException class, with the specified error message and the BizDataErrorCodes that is the cause for this exception.
Namespace: Microsoft.CommerceServer.Interop.Profiles
Assembly: Microsoft.CommerceServer.Interop.Profiles.BizDataAdmin (in Microsoft.CommerceServer.Interop.Profiles.BizDataAdmin.dll)
Syntax
'Declaration
Public Sub New ( _
ByRef message As String, _
errCode As BizDataErrorCodes _
)
'Usage
Dim message As String
Dim errCode As BizDataErrorCodes
Dim instance As New BizDataException(message, _
errCode)
public BizDataException(
ref string message,
BizDataErrorCodes errCode
)
public:
BizDataException(
String^% message,
BizDataErrorCodes errCode
)
public function BizDataException(
message : String,
errCode : BizDataErrorCodes
)
Parameters
- message
Type: System..::.String%
The error message.
- errCode
Type: Microsoft.CommerceServer.Interop.Profiles..::.BizDataErrorCodes
The error Code.
Remarks
Exception raised when a Profile attribute cannot be committed, a data-source in cannot be created, a catalog cannot be retrieved, or an XML document cannot be loaded.
The errCode is the BizDataErrorCodes enumeration value that indicates the type of error that has occurred. The message contains a description of the error that has occurred.
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.