DebugContext.Error (String, String) Method (BCL)
Use this method to record an error.
Definition
[Visual Basic .NET]
Overridable Public Sub Error( _ByValcategory As System.String, _
ByValmessage As System.String _
)
[C#]
public virtual void Error(System.Stringcategory,
System.Stringmessage);
Parameters
[Visual Basic .NET]
- category
The debug category. - message
The debug message.
[C#]
- category
The debug category. - message
The debug message.
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.