Chapter 5. Error handling

This chapter covers

  • The difference between recoverable and irrecoverable errors
  • Where and when Camel’s error handling applies
  • The different error handlers in Camel
  • Using redelivery policies
  • Handling and ignoring exceptions with onException
  • Fine-grained control of error handling

In the last three chapters, we’ve covered three key functions that any integration kit should provide: routing, transformation, and mediation. In this chapter, we turn our focus to what happens when things go wrong. We want to introduce you to error handling early in this book, because we firmly believe that error handling should not be an afterthought but a key piece in your design from the start.

Writing applications that integrate ...

Get Camel in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.