Catch exception by reference