Adds the new error type ProviderError

Adds the new error type ProviderError and modifies InvalidCredsError to extend from it.