You can learn more about error handling in Chapters 3 and 17 of Erlang Programming, Chapter 4 and Section 18.2 of Programming Erlang, Section 2.8 and Chapters 5 and 7 of Erlang and OTP in Action, and Chapters 7 and 12 of Learn You Some Erlang For Great Good!.