Class AlertSender

java.lang.Object
com.mirth.connect.server.userutil.AlertSender

public class AlertSender extends Object
Allows users to dispatch error events which can be alerted on.
  • Constructor Details

    • AlertSender

      public AlertSender(String channelId)
      Instantiates a new AlertSender.
      Parameters:
      channelId - The ID of the channel to associate dispatched alert events with.
    • AlertSender

      public AlertSender(ImmutableConnectorMessage connectorMessage)
      Instantiates a new AlertSender.
      Parameters:
      connectorMessage - The connector message to associate dispatched alert events with.
  • Method Details

    • sendAlert

      public void sendAlert(String errorMessage)
      Dispatches an error event that can be alerted on.
      Parameters:
      errorMessage - A custom error message to include with the error event.