Skip to content

Commit 2568c34

Browse files
committed
fix grammatical errors
1 parent bd46b55 commit 2568c34

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Docs/reference/content/reference/driver/error_handling.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ There are a few types of errors you will see.
2222
Even when some servers are available, it might not be possible to satisfy a request. For example, using [tag sets]({{< docsref "core/read-preference/#tag-sets" >}}) in a read preference when no server exists with those tags or attempting to write to a [replica set]({{< docsref "core/replication-introduction/" >}}) when the Primary is unavailable. Both of these would result in a [`TimeoutException`]({{< msdnref "system.timeoutexception" >}}). Below is an example exception (formatted for readability) when attempting to insert into a replica set without a primary.
2323

2424
```bash
25-
System.TimeoutException: A timeout occured after 30000ms selecting a server using
25+
System.TimeoutException: A timeout occurred after 30000ms selecting a server using
2626
CompositeServerSelector{
2727
Selectors =
2828
WritableServerSelector,
@@ -79,7 +79,7 @@ If you are having trouble discovering why the driver can't connect, [enabling ne
7979
When a server is not listening at the location specified, the driver can't connect to it.
8080

8181
```bash
82-
System.TimeoutException: A timeout occured after 30000ms selecting a server using
82+
System.TimeoutException: A timeout occurred after 30000ms selecting a server using
8383
CompositeServerSelector{
8484
Selectors =
8585
WritableServerSelector,
@@ -116,7 +116,7 @@ Fixing this problem either involves starting a server at the specified location
116116
When DNS is misconfigured, or the hostname provided is not registered, resolution from hostname to IP address may fail.
117117

118118
```bash
119-
System.TimeoutException: A timeout occured after 30000ms selecting a server using
119+
System.TimeoutException: A timeout occurred after 30000ms selecting a server using
120120
CompositeServerSelector{
121121
Selectors =
122122
WritableServerSelector,
@@ -160,7 +160,7 @@ DNS problems might be seen when a replica set is misconfigured. It is imperative
160160
When the latency between the driver and the server is too great, the driver may give up.
161161

162162
```bash
163-
System.TimeoutException: A timeout occured after 30000ms selecting a server using
163+
System.TimeoutException: A timeout occurred after 30000ms selecting a server using
164164
CompositeServerSelector{
165165
Selectors =
166166
WritableServerSelector,
@@ -197,7 +197,7 @@ The default connection timeout is 30 seconds and can be changed using the [`Mong
197197
When the credentials or the authentication mechanism is incorrect, the application will fail to connect.
198198
199199
```bash
200-
System.TimeoutException: A timeout occured after 30000ms selecting a server using
200+
System.TimeoutException: A timeout occurred after 30000ms selecting a server using
201201
CompositeServerSelector{
202202
Selectors =
203203
WritableServerSelector,
@@ -283,7 +283,7 @@ MongoDB.Driver.MongoBulkWriteException`1[MongoDB.Bson.BsonDocument]: A bulk writ
283283
at MongoDB.Driver.MongoCollectionImpl`1.<BulkWriteAsync>d__11.MoveNext() in c :\projects\mongo-csharp-driver\src\MongoDB.Driver\MongoCollectionImpl.cs:line 166
284284
```
285285
286-
Above, we see that a duplicate key exception occured. In this case, two writes existed in the batch. Inspected the [`WriteErrors`]({{< apiref "P_MongoDB_Driver_MongoBulkWriteException_WriteErrors" >}}) property would allow the identification of which write failed.
286+
Above, we see that a duplicate key exception occurred. In this case, two writes existed in the batch. Inspected the [`WriteErrors`]({{< apiref "P_MongoDB_Driver_MongoBulkWriteException_WriteErrors" >}}) property would allow the identification of which write failed.
287287
288288
#### Ordered Writes
289289

Docs/reference/content/reference/driver_core/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static void Main()
119119

120120
### Operation Ids
121121

122-
Any commands that could occur based on user initiation will contain an operation identifier. This identifer can be used to link together all events that occured due to the user initiated action.
122+
Any commands that could occur based on user initiation will contain an operation identifier. This identifer can be used to link together all events that occurred due to the user initiated action.
123123

124124

125125
### ClusterId, ServerId, and ConnectionId

src/MongoDB.Driver.Core/Core/Clusters/Cluster.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ private string BuildTimeoutExceptionMessage(TimeSpan timeout, IServerSelector se
348348
{
349349
var ms = (int)Math.Round(timeout.TotalMilliseconds);
350350
return string.Format(
351-
"A timeout occured after {0}ms selecting a server using {1}. Client view of cluster state is {2}.",
351+
"A timeout occurred after {0}ms selecting a server using {1}. Client view of cluster state is {2}.",
352352
ms.ToString(),
353353
selector.ToString(),
354354
clusterDescription.ToString());

tests/MongoDB.Driver.Tests/Specifications/client-side-encryption/prose-tests/ClientEncryptionProseTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public void BypassSpawningMongocryptdViaMongocryptdBypassSpawnTest(
262262
var exception = Record.Exception(() => Insert(coll, async, new BsonDocument("encrypted", "test")));
263263

264264
exception.Should().BeOfType<MongoEncryptionException>();
265-
exception.Message.Should().Contain("A timeout occured after 1000ms selecting a server");
265+
exception.Message.Should().Contain("A timeout occurred after 1000ms selecting a server");
266266
}
267267
}
268268

@@ -291,7 +291,7 @@ public void BypassSpawningMongocryptdViaBypassAutoEncryptionTest(
291291
var exception = Record.Exception(() => adminDatabase.RunCommand<BsonDocument>(isMasterCommand));
292292

293293
exception.Should().BeOfType<TimeoutException>();
294-
exception.Message.Should().Contain("A timeout occured after 1000ms selecting a server");
294+
exception.Message.Should().Contain("A timeout occurred after 1000ms selecting a server");
295295
}
296296
}
297297

0 commit comments

Comments
 (0)