[CXX-1234] Clean up use of exceptions in GridFS Created: 28/Feb/17  Updated: 13/Apr/17  Resolved: 13/Apr/17

Status: Closed
Project: C++ Driver
Component/s: Implementation
Affects Version/s: None
Fix Version/s: 3.2.0-rc0

Type: Task Priority: Major - P3
Reporter: Samuel Rossi (Inactive) Assignee: J Rassi
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CXX-1130 Implement GridFS Spec Closed

 Description   

Currently, all exceptions thrown in GridFS code are generic `std::exception`. These should be replaced with more proper specific exceptions (i.e. either existing or newly-created exceptions in the `mongocx/exception` directory.

Also, as part of the work for this ticket, we should validate user-provided and server-provided input.



 Comments   
Comment by Githook User [ 13/Apr/17 ]

Author:

{u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}

Message: CXX-1234 Validate GridFS input from user and server

Covers cases of:

Comment by Githook User [ 07/Apr/17 ]

Author:

{u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}

Message: CXX-1234 Clean up remaining uses of exceptions in GridFS
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/cf1b40e609732595594fa3b7be6e1b601df3ff77

Comment by Githook User [ 07/Apr/17 ]

Author:

{u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}

Message: CXX-1234 Improve use of exceptions thrown by GridFS download operations
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/c0ac302d613c96b4d4a19f1d54de5a3981c3ae14

Comment by Githook User [ 06/Apr/17 ]

Author:

{u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}

Message: CXX-1234 Improve use of exceptions thrown by GridFS upload operations

Adds a new exception type `mongocxx::gridfs_exception`, and several
new mongocxx error codes.
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/334cecf164c03e279dca1bff92a6b42b275562c9

Generated at Wed Feb 07 22:01:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.