Use @ServiceActivator on the .errors channel to catch runtime message exceptions.
@ServiceActivator
.errors
Use try-catch blocks inside your consumer functions for fine-grained handling.
try-catch
Wrap your main method with a try-catch to handle startup exceptions.
main