InternalThrowIfNecessary method

void InternalThrowIfNecessary()
method that throws a ServiceResponseException if this response has its Result property set to Error.

Implementation

void InternalThrowIfNecessary() {
  if (this.Result == ServiceResult.Error) {
    throw new ServiceResponseException(this);
  }
}