Emits an error message and a detailed error message.
Parameters
message
A message to emit.
detail_message
A detailed message to emit.
Remarks
The default behavior is that the default_trace_listener outputs the message to a message box when the application is running in user interface mode and to the TraceListener instances in the Listeners collection.