InternalThrowIfNecessary method

  1. @override
void InternalThrowIfNecessary()
override
Override base implementation so that API does not throw when name resolution fails to find a match. EWS returns an error in this case but the API will just return an empty NameResolutionCollection.

Implementation

@override
void InternalThrowIfNecessary() {
  if (this.ErrorCode != ServiceError.ErrorNameResolutionNoResults) {
    super.InternalThrowIfNecessary();
  }
}