PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Trace Namespace / Base­Collecting­Trace­Listener Class / Base­Collecting­Trace­Listener Methods / Base­Collecting­Trace­Listener.​Fail Method

BaseCollectingTraceListener.Fail Method

Emits an error message and a detailed error message to the listener you create when you implement the TraceListener class.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Trace
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Tracing (in PostSharp.Patterns.Diagnostics.Backends.Tracing.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
public override void Fail(
	string message,
	string detailMessage
)

Parameters

message
Type: System.String
A message to emit.
detailMessage
Type: System.String
A detailed message to emit.
See Also