allowing a list of exceptions to be specified