public void Handle(IReceivedMessageInternal message, IMessageContext context, Exception exception)
{
try
{
_transportErrorHandler.MessageFailedProcessing(message, context,
exception);
}
catch (Exception errorHandlingError)
{
_log.ErrorException(
"An error has occurred while trying to move message {0} to the error queue", exception,
message.MesssageId);
throw new DotNetWorkQueueException("An error has occurred in the error handling code",
errorHandlingError);
}
throw new MessageException("An unhanded exception has occurred while processing a message",
exception, message.MesssageId, message.CorrelationId);
}
}