diff --git a/language-snippets.ent b/language-snippets.ent index 04e32eaaa2..2e6e36de0a 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -1725,3 +1725,4 @@ on replica set members. "fsync"Boolean, defaults to &false;. Forces the insert to be synced to disk before returning success. If &true;, an acknowledged insert is implied and will override setting w to 0.'> "timeout"Integer, defaults to MongoCursor::$timeout. If "safe" is set, this sets how long (in milliseconds) for the client to wait for a database response. If the database does not respond within the timeout period, a MongoCursorTimeoutException will be thrown.'> "safe"Deprecated. Please use the WriteConcern w option.'> +Throws MongoCursorException if the "w" option is set and the write fails.Throws MongoCursorTimeoutException if the "w" option is set to a value greater than one and the operation takes longer than MongoCursor::$timeout milliseconds to complete. This does not kill the operation on the server, it is a client-side timeout. The operation in MongoCollection::$wtimeout is milliseconds.'> diff --git a/reference/mongo/mongocollection/batchinsert.xml b/reference/mongo/mongocollection/batchinsert.xml index c1b3b21b29..0d4cbac853 100644 --- a/reference/mongo/mongocollection/batchinsert.xml +++ b/reference/mongo/mongocollection/batchinsert.xml @@ -76,15 +76,7 @@ &reftitle.errors; - - Throws MongoCursorException if the "w" option is - set and the insert fails. - - - Throws MongoCursorTimeoutException if the "w" - option is set to a value greater than one and the database cannot replicate - the operation in MongoCollection::$wtimeout milliseconds. - + &mongo.errors.exceptions.writeconcern; diff --git a/reference/mongo/mongocollection/ensureindex.xml b/reference/mongo/mongocollection/ensureindex.xml index 72f6ff992d..dcdc7cdeaa 100644 --- a/reference/mongo/mongocollection/ensureindex.xml +++ b/reference/mongo/mongocollection/ensureindex.xml @@ -215,16 +215,7 @@ Throws MongoException if the index name is longer than 128 bytes. (Version 1.0.11+) - - Throws MongoCursorException if the "w" option is - set and the index creation fails. - - - Throws MongoCursorTimeoutException if the "w" - option is set and the operation takes longer than - MongoCursor::$timeout milliseconds to complete. This does - not kill the operation on the server, it is a client-side timeout. - + &mongo.errors.exceptions.writeconcern; diff --git a/reference/mongo/mongocollection/insert.xml b/reference/mongo/mongocollection/insert.xml index 2fd95130ed..e42141e455 100644 --- a/reference/mongo/mongocollection/insert.xml +++ b/reference/mongo/mongocollection/insert.xml @@ -189,16 +189,7 @@ Throws MongoException if the inserted array is empty. - - Throws MongoCursorException if the - "w" option is set and the operation fails. - - - Throws MongoCursorTimeoutException if the - "w" option is set and the operation takes longer than - MongoCursor::$timeout milliseconds to complete. This does - not kill the operation on the server; it is a client-side timeout. - + &mongo.errors.exceptions.writeconcern; diff --git a/reference/mongo/mongocollection/remove.xml b/reference/mongo/mongocollection/remove.xml index 46f56dbc5c..1468eff7db 100644 --- a/reference/mongo/mongocollection/remove.xml +++ b/reference/mongo/mongocollection/remove.xml @@ -72,16 +72,7 @@ &reftitle.errors; - - Throws MongoCursorException if the - "w" option is set and the operation fails. - - - Throws MongoCursorTimeoutException if the - "w" option is set and the operation takes longer than - MongoCursor::$timeout milliseconds to complete. This does - not kill the operation on the server; it is a client-side timeout. - + &mongo.errors.exceptions.writeconcern; diff --git a/reference/mongo/mongocollection/save.xml b/reference/mongo/mongocollection/save.xml index ebd80bd9a9..06a12ef273 100644 --- a/reference/mongo/mongocollection/save.xml +++ b/reference/mongo/mongocollection/save.xml @@ -65,16 +65,7 @@ &reftitle.errors; - - Throws MongoCursorException if the "w" option is - set and the save fails. - - - Throws MongoCursorTimeoutException if the "w" - option is set and the operation takes longer than - MongoCursor::$timeout milliseconds to complete. This does - not kill the operation on the server, it is a client-side timeout. - + &mongo.errors.exceptions.writeconcern; diff --git a/reference/mongo/mongocollection/update.xml b/reference/mongo/mongocollection/update.xml index e58538e928..702262170b 100644 --- a/reference/mongo/mongocollection/update.xml +++ b/reference/mongo/mongocollection/update.xml @@ -109,16 +109,7 @@ &reftitle.errors; - - Throws MongoCursorException if the - "w" option is set and the operation fails. - - - Throws MongoCursorTimeoutException if the - "w" option is set and the operation takes longer than - MongoCursor::$timeout milliseconds to complete. This does - not kill the operation on the server; it is a client-side timeout. - + &mongo.errors.exceptions.writeconcern; diff --git a/reference/mongo/mongogridfs/storebytes.xml b/reference/mongo/mongogridfs/storebytes.xml index edb3a4afb8..9f31cded98 100644 --- a/reference/mongo/mongogridfs/storebytes.xml +++ b/reference/mongo/mongogridfs/storebytes.xml @@ -67,10 +67,7 @@ &reftitle.errors; - - Throws MongoCursorException if the "w" option is - set and the insert fails. - + &mongo.errors.exceptions.writeconcern; diff --git a/reference/mongo/mongogridfs/storefile.xml b/reference/mongo/mongogridfs/storefile.xml index 143702bea3..2a0d38c34a 100644 --- a/reference/mongo/mongogridfs/storefile.xml +++ b/reference/mongo/mongogridfs/storefile.xml @@ -67,10 +67,7 @@ &reftitle.errors; - - Throws MongoCursorException if the "w" option is - set and the insert fails. - + &mongo.errors.exceptions.writeconcern;