using System; using Tapeti.Config; namespace Tapeti { public interface IExceptionStrategy { /// /// Called when an exception occurs while handling a message. /// /// The message context if available. May be null! /// The exception instance /// The ConsumeResponse to determine whether to requeue, dead-letter (nack) or simply ack the message. ConsumeResponse HandleException(IMessageContext context, Exception exception); } }