unify exception usages