Error handling example code.

Fix for #66 

Should it need a separate section or is it fine?