Content deleted Content added
Line 237:
// ...
} catch (const std::exception& e) {
// Catching only exceptions:
std::println("An exception was caught: {}", e.what());
// Catching all thrown objects:▼
} catch (...) {
▲ // Catching all thrown objects:
std::println("An unknown error was caught");
}
|