# HG changeset patch # User Sebastien Jodogne # Date 1608732997 -3600 # Node ID b651989194d3af3123987cfe1908164ef94040a1 # Parent 354ea95b294a1a81521dbf7f9be925637c5ceaf9 fix for older compilers diff -r 354ea95b294a -r b651989194d3 OrthancFramework/Sources/SystemToolbox.cpp --- a/OrthancFramework/Sources/SystemToolbox.cpp Wed Dec 23 15:13:45 2020 +0100 +++ b/OrthancFramework/Sources/SystemToolbox.cpp Wed Dec 23 15:16:37 2020 +0100 @@ -244,7 +244,7 @@ { throw OrthancException(ErrorCode_InexistentFile); } - catch (std::system_error&) + catch (...) // To catch "std::system_error&" in C++11 { throw OrthancException(ErrorCode_InexistentFile); } @@ -306,7 +306,7 @@ { throw OrthancException(ErrorCode_InexistentFile); } - catch (std::system_error&) + catch (...) // To catch "std::system_error&" in C++11 { throw OrthancException(ErrorCode_InexistentFile); } @@ -375,7 +375,7 @@ { throw OrthancException(ErrorCode_CannotWriteFile); } - catch (std::system_error&) + catch (...) // To catch "std::system_error&" in C++11 { throw OrthancException(ErrorCode_CannotWriteFile); } @@ -429,7 +429,7 @@ { throw OrthancException(ErrorCode_InexistentFile); } - catch (std::system_error&) + catch (...) // To catch "std::system_error&" in C++11 { throw OrthancException(ErrorCode_InexistentFile); }