catch the correct exception