summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/document.h')
-rw-r--r--src/mongo/db/pipeline/document.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document.h b/src/mongo/db/pipeline/document.h
index e004f7ab982..5e5980f5a51 100644
--- a/src/mongo/db/pipeline/document.h
+++ b/src/mongo/db/pipeline/document.h
@@ -192,7 +192,8 @@ public:
/**
* Serializes this document to the BSONObj under construction in 'builder'. Metadata is not
- * included. Throws a UserException if 'recursionLevel' exceeds the maximum allowable depth.
+ * included. Throws a AssertionException if 'recursionLevel' exceeds the maximum allowable
+ * depth.
*/
void toBson(BSONObjBuilder* builder, size_t recursionLevel = 1) const;
BSONObj toBson() const;