Error handling example code.

Fix for #66