Error Method (String, String, Exception)
Record an error message with Exception information..
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, _
ex As Exception _
)
'Usage
Dim instance As ConsoleDebugContext
Dim category As String
Dim debugText As String
Dim ex As Exception
instance.Error(category, debugText, ex)
public override void Error(
string category,
string debugText,
Exception ex
)
public:
virtual void Error(
String^ category,
String^ debugText,
Exception^ ex
) override
public override function Error(
category : String,
debugText : String,
ex : Exception
)
Parameters
- category
Type: System..::.String
The category the error belongs to.
- debugText
Type: System..::.String
The message the error contains.
- ex
Type: System..::.Exception
Exception (not used)
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
- 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.