private void SetVariables(AdapterConfigurationExceptionType type) { string format = "Attempt to invoke web service method failed. {0} Check the configuration and try again."; switch (type) { case AdapterConfigurationExceptionType.Url: _message = string.Format(format, "No URL to the web service has been provided."); _refersTo = "Url"; break; case AdapterConfigurationExceptionType.Account: _message = string.Format(format, "No Account to the web service has been provided."); _refersTo = "Account"; break; case AdapterConfigurationExceptionType.License: _message = string.Format(format, "No License to the web service has been provided."); _refersTo = "License"; break; case AdapterConfigurationExceptionType.UserName: _message = string.Format(format, "No UserName to the web service has been provided."); _refersTo = "UserName"; break; case AdapterConfigurationExceptionType.Password: _message = string.Format(format, "No Password to the web service has been provided."); _refersTo = "Password"; break; } }
/// <include file='Avalara.AvaTax.Adapter.Doc.xml' path='adapter/common/members[@name="InternalConstructor"]/*' /> internal AdapterConfigException(AdapterConfigurationExceptionType type) : base() { SetVariables(type); }