Chapter 13Errors in Concurrent Programs

Handling errors in concurrent programs involves a completely different way of thinking than handling errors in sequential programs. In this chapter, we’ll build upon the principles you learned about in Chapter 6, Error Handling in Sequential Programs, extending the ideas to concurrent programs.

We’ll look at the underlying philosophy of error handling and at the details of how errors are propagated between processes and trapped by other processes. Finally we’ll round off with some small examples that form a basis for programming fault-tolerant software.

Imagine a system with only one sequential process. If this process dies, we might be in deep trouble since no other process can help. For this reason, ...

Get Programming Erlang, 2nd Edition 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.