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

to better adopt to common coding style (see http://www.informit.com/articles/article.aspx?p=373339)