Error handling in book