catch exceptions by const&