Collapse All Expand All

.NET Framework Class Library
See Also

[TIBCO.EMS .NET client library 5.1 documentation]

Delegate declaration for the multicast exception handler

Namespace: TIBCO.EMS
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)

# Syntax

    public delegate void EMSMulticastExceptionHandler(
    	Object sender,
    	EMSMulticastExceptionEventArgs args
    )

    Public Delegate Sub EMSMulticastExceptionHandler ( _
    	sender As Object, _
    	args As EMSMulticastExceptionEventArgs _
    )

    public delegate void EMSMulticastExceptionHandler(
    	Object^ sender,
    	EMSMulticastExceptionEventArgs^ args
    )

#### Parameters

sender
  Type: System..::.Object
  The source of the event, the Connection object in this case.

args
  Type: TIBCO.EMS..::.EMSMulticastExceptionEventArgs
  The event argument, EMSExceptionEventArgs, that contains the exception object.

# Remarks

Asynchronously detect problems with connections.

When a program uses EMS mutlicast, EMS can detect problems with multicast and notify the client program by throwing exceptions or invoking this delegate.

This delegate provides a pathway for alerting a client program of multicast problems. The program implements this delegate, and registers it. When the client library detects or is notified of a multicast problem, it raises an event. This delegate processes the event, which contains an exception that details the problem.

EMSMulticastExceptionHandler detects this type of problem in a .NET programming idiom.

Multicast Exception Event Handler Example:

| Copy Code
--- | ---
                ...
                Tibems.MulitcastExceptionHandler += new EMSMulticastExceptionHandler(handleEx);
                ...
                private void handleEx(object sender, EMSMulticastExceptionEventArgs arg)
                {
                   EMSException e = arg.Exception;
                   Console.WriteLine("Exception: " + e.Message);
                }
                ...

# See Also

TIBCO.EMS Namespace