Click to see the query in the CodeQL repository
This rule finds exceptions thrown in destructors. This is dangerous: If the destructor is called during stack unwinding as part of the handling of another exception, throwing an additional exception will immediately terminate the program as per the C++ specification.
Handle the error condition in a different way.
M. Cline, C++ FAQ: How can I handle a destructor that fails?
B. Stroustrup. The C++ Programming Language Special Edition p 380. Addison Wesley. 2000.