Make thrown exceptions consistent across providers.