-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Testing
-
Not Needed
-
The REQUIRE_THROWS_AS macro from the Catch testing framework allows tests to declare the type of the exception expected to be thrown in an expression. However, no mechanism exists for introspecting the error code associated with the exception thrown. Adding a macro such as REQUIRE_THROWS_AS_WITH_CODE would allow for easy creation of tests that fully verify the correctness of the exception thrown.
- is related to
-
CXX-834 Return local mongoc errors and server errors in different error spaces
- Backlog