Ensure only exceptions can be passed as types in WithOverrideFor<T>