.NET Client Documentation
5.3.0
Search Results for

    Show / Hide Table of Contents

    Exception Method

    Exception(Action<IHReliableTopic<T>, ReliableTopicExceptionEventArgs>)

    Sets the handler when runs on exception.

    Declaration
    public ReliableTopicEventHandlers<T> Exception(Action<IHReliableTopic<T>, ReliableTopicExceptionEventArgs> handler)
    Parameters
    Action<IHReliableTopic<T>, ReliableTopicExceptionEventArgs> handler

    The handler.

    Returns
    ReliableTopicEventHandlers<T>
    Remarks

    The exception event is triggered when an exception is thrown while listening the topic or handling the Message(Action<IHReliableTopic<T>, ReliableTopicMessageEventArgs<T>>) event. The value of Cancel -True by default- can terminate the subscription. If Cancel is set False, the subscription will continue to run from next message -if any- or continue to listen the ring buffer as usual.

    Exception(Func<IHReliableTopic<T>, ReliableTopicExceptionEventArgs, ValueTask>)

    Sets the handler when runs on exception.

    Declaration
    public ReliableTopicEventHandlers<T> Exception(Func<IHReliableTopic<T>, ReliableTopicExceptionEventArgs, ValueTask> handler)
    Parameters
    Func<IHReliableTopic<T>, ReliableTopicExceptionEventArgs, ValueTask> handler

    The handler.

    Returns
    ReliableTopicEventHandlers<T>
    Remarks

    The exception event is triggered when an exception is thrown while listening the topic or handling the Message(Action<IHReliableTopic<T>, ReliableTopicMessageEventArgs<T>>) event.

    In This Article
    Back to top Copyright © 2010-2023 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.