Can you check the type of exception?