summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclientinterface.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-08-10 15:52:33 -0400
committerMathias Stearn <mathias@10gen.com>2017-08-16 16:28:02 -0400
commit347935f7a5d0452146b1a73ad7ef9e249eaf1fb5 (patch)
tree00b322f5adcf3eb9c2624747a6b5b2179e440052 /src/mongo/client/dbclientinterface.h
parentcdf7aacb213c99d3ce620761ff46b030bbd7732d (diff)
downloadmongo-347935f7a5d0452146b1a73ad7ef9e249eaf1fb5.tar.gz
SERVER-30580 Eliminate UserException and MsgAssertionException types
All users were converted to just use AssertionException.
Diffstat (limited to 'src/mongo/client/dbclientinterface.h')
-rw-r--r--src/mongo/client/dbclientinterface.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/client/dbclientinterface.h b/src/mongo/client/dbclientinterface.h
index f57618bca00..91e7033379d 100644
--- a/src/mongo/client/dbclientinterface.h
+++ b/src/mongo/client/dbclientinterface.h
@@ -580,7 +580,7 @@ public:
/** Create an index on the collection 'ns' as described by the given keys. If you wish
* to specify options, see the more flexible overload of 'createIndex' which takes an
* IndexSpec object. Failure to construct the index is reported by throwing a
- * UserException.
+ * AssertionException.
*
* @param ns Namespace on which to create the index
* @param keys Document describing keys and index types. You must provide at least one
@@ -592,7 +592,7 @@ public:
/** Create an index on the collection 'ns' as described by the given
* descriptor. Failure to construct the index is reported by throwing a
- * UserException.
+ * AssertionException.
*
* @param ns Namespace on which to create the index
* @param descriptor Configuration object describing the index to create. The
@@ -871,7 +871,7 @@ public:
Status connectSocketOnly(const HostAndPort& server);
/** Connect to a Mongo database server. Exception throwing version.
- Throws a UserException if cannot connect.
+ Throws a AssertionException if cannot connect.
If autoReconnect is true, you can try to use the DBClientConnection even when
false was returned -- it will try to connect again.