Jaa


Error Method (String, String)

Records an error message.

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

Syntax

'Declaration
Public Overrides Sub Error ( _
    category As String, _
    debugText As String _
)
'Usage
Dim instance As ConsoleDebugContext
Dim category As String
Dim debugText As String

instance.Error(category, debugText)
public override void Error(
    string category,
    string debugText
)
public:
virtual void Error(
    String^ category, 
    String^ debugText
) override
public override function Error(
    category : String, 
    debugText : String
)

Parameters

Remarks

A site running in Checked mode will raise any relevant errors with CommerceDebugException. Otherwise, the site uses the ASP.NET TraceContext.Warn to log any relevant error message. This error message will be prefixed with the string "Error: ".

Permissions

See Also

Reference

ConsoleDebugContext Class

ConsoleDebugContext Members

Error Overload

Microsoft.CommerceServer.Runtime.Diagnostics Namespace