checking for exceptions using list of exceptions from objectspace