When exceptions occur, it is usually a bad idea to simply ignore them. Instead, it is better to handle them properly, or at least to log them.
Noncompliant code example
void save() {
try {
saveDocument();
} catch (const std::exception& ex) {
}
}
Compliant solution
void save() {
try {
saveDocument();
} catch (const std::exception& ex) {
log << "Exception while saving the document: " << ex.what();
}
}