Mercurial > hg > orthanc-databases
changeset 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 | 07881ac5404b |
children | b6ddd7b7e8ca |
files | Framework/Plugins/StorageBackend.cpp |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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 } } }