Handling exceptions in Kafka streams : <p>Had gone through multiple posts but most of them are related handling Bad messages not about exception handling while processing them.</p>

<p>I want to know to how to handle the messages that is been received by the stream application and there is an exception while processing the message? The exception could be because of multiple reasons like Network failure, RuntimeException etc., </p>

<ul>
<li>Could someone suggest what is the right way to do? Should I use
<code>setUncaughtExceptionHandler</code>? or is there a better way? </li>
<li>How to handle retries?</li>
</ul>

<p>Thanks in advance!!</p>
