2018-12-19 19:50:56 +00:00
|
|
|
|
using Tapeti.Config;
|
2017-02-07 15:13:33 +00:00
|
|
|
|
|
|
|
|
|
namespace Tapeti
|
|
|
|
|
{
|
|
|
|
|
public interface IExceptionStrategy
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Called when an exception occurs while handling a message.
|
|
|
|
|
/// </summary>
|
2017-10-17 11:29:16 +00:00
|
|
|
|
/// <param name="context">The exception strategy context containing the necessary data including the message context and the thrown exception.
|
|
|
|
|
/// Also the response to the message can be set.
|
|
|
|
|
/// If there is any other handling of the message than the expected default than HandlingResult.MessageFutureAction must be set accordingly. </param>
|
|
|
|
|
void HandleException(IExceptionStrategyContext context);
|
2017-02-07 15:13:33 +00:00
|
|
|
|
}
|
|
|
|
|
}
|