ErrorMessage Class

ErrorMessage Class

Raised by:  SALT application, Speech Controls
Base Class:  ApplicationOperatorEvent
Derived Classes:  None

ErrorMessage provides a way for SALT application developers to send an entry to the Windows Event log for error-level events.

Events in this category are sent to both the Windows Event log and the Trace log.

ErrorMessage has the following properties:

Property

Type

Description

Message

String

A text string supplied by the developer that specifies the content of the message.

Remarks

Events sent to the Windows Event log are visible to system administrators and operations staff. Message text for these events should contain clear information about the event, and in cases of warning– or error–level events, provide information about steps to take to resolve the situation.

Example

import Microsoft.SpeechServer.Messages;

if ( ErrorMessage.IsEnabled() )
{
    // Raise an operator-visible error message
    ErrorMessage.Raise( "Call Center application error: unable to open
the database with the name DB554433.  No calls can be taken." );
}

See Also

Event Logging Class Hierarchy | Logging and Analyzing Events | CommonEvent | Event Filters | Filtering Logged Events