do not throw exceptions by pointer, but by value instead and catch them via reference.
Merge pull request #72 from marscher/handle_exceptions_by_reference

do not throw exceptions by pointer, but by value instead and catch them via reference.