Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Use this method to record an error and an exception.
Definition
[Visual Basic .NET]
Overridable Public Sub Error( _ByValcategory As System.String, _
ByValmessage As System.String, _
ByValex As System.Exception _
)
[C#]
public virtual void Error(System.Stringcategory,
System.Stringmessage,
System.Exceptionex);
Parameters
[Visual Basic .NET]
- category
The debug category. - message
The debug message. - ex
The inner exception.
[C#]
- category
The debug category. - message
The debug message. - ex
The inner exception.
Remarks
If the Commerce Server site is running in Checked mode, this method throws a CommerceDebugException. Otherwise, this class uses the Warn method of the System.Web.TraceContext class to log the message prefixed with the string "Error:".
Requirements
Namespace: Microsoft.CommerceServer.Runtime.Diagnostics
Platforms: Windows 2000, Windows Server 2003
Assembly: Microsoft.CommerceServer.Runtime.dll
Copyright © 2005 Microsoft Corporation.
All rights reserved.