Add exception handlers to all unit tests, tutorials and examples
Merge pull request #31 from andlaus/adapt_exception_code

Add exception handlers to examples