Skip to content

Instantly share code, notes, and snippets.

@schroedermatt
Created February 13, 2020 14:25
Show Gist options
  • Select an option

  • Save schroedermatt/0ba9ba01aca76fe811b16d75250d504d to your computer and use it in GitHub Desktop.

Select an option

Save schroedermatt/0ba9ba01aca76fe811b16d75250d504d to your computer and use it in GitHub Desktop.
Example showing how to configure the uncaught exception handler.
KafkaStreams streams = new KafkaStreams(topology, config);
// other configurations
streams.setUncaughtExceptionHandler((Thread thread, Throwable throwable) -> {
   // examine the throwable and do something
});
streams.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment