Replaces several exceptions in a throws clause with a single more general one.