move InvalidProviderException to exceptions namespace