Catch exceptions by reference rather than by value.

Fixes -Wcatch-value gcc warnings.
1 file changed