NServiceBus provides really nice customisation features for your recoverability functionality. We already saw how you can customise the immediate and delayed retries. In this post we'll look at implementing our own custom policy which allows us to make decisions based on the exceptions that are thrown in the message handlers.
The NServiceBus documentation on customising your recoverability policy is well explained and so I recommend you read their documentation first.