© Stefania Loredana Nita and Marius Mihailescu 2017

Stefania Loredana Nita and Marius Mihailescu, Practical Concurrent Haskell, https://doi.org/10.1007/978-1-4842-2781-7_5

5. Exceptions

Stefania Loredana Nita and Marius Mihailescu1

(1)Bucharest, Romania

In any programming language, error handling is an important task. In general, when we talk about an unexpected behavior in our program, we refer to two terms: errors and exceptions. We need to distinguish between them to make the appropriate decision for our program.

The term exception is newer to programming than the error. An exception represents an anticipated, but improper case at runtime; whereas an error represents an inaccuracy, which can only be solved by changing the program.

The following ...

Get Practical Concurrent Haskell: With Big Data Applications 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.