Mercurial > hg > orthanc-databases
diff Framework/Plugins/StorageBackend.cpp @ 274:b988cb30534f
backward compatibility against old versions of the Orthanc framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 22 Apr 2021 15:04:30 +0200 |
parents | 6b18d3fbee82 |
children | e55e4e8f9459 |
line wrap: on
line diff
--- a/Framework/Plugins/StorageBackend.cpp Thu Apr 22 14:53:52 2021 +0200 +++ b/Framework/Plugins/StorageBackend.cpp Thu Apr 22 15:04:30 2021 +0200 @@ -790,6 +790,7 @@ } catch (Orthanc::OrthancException& e) { +#if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 9, 2) if (e.GetErrorCode() == Orthanc::ErrorCode_DatabaseCannotSerialize) { if (attempt >= maxRetries_) @@ -808,6 +809,9 @@ { throw; } +#else + throw; +#endif } } }