changeset 4402:b651989194d3

fix for older compilers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Dec 2020 15:16:37 +0100
parents 354ea95b294a
children ad646ff506d0
files OrthancFramework/Sources/SystemToolbox.cpp
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }