comparison 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
comparison
equal deleted inserted replaced
273:07881ac5404b 274:b988cb30534f
788 operation.Execute(*accessor); 788 operation.Execute(*accessor);
789 return; // Success 789 return; // Success
790 } 790 }
791 catch (Orthanc::OrthancException& e) 791 catch (Orthanc::OrthancException& e)
792 { 792 {
793 #if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 9, 2)
793 if (e.GetErrorCode() == Orthanc::ErrorCode_DatabaseCannotSerialize) 794 if (e.GetErrorCode() == Orthanc::ErrorCode_DatabaseCannotSerialize)
794 { 795 {
795 if (attempt >= maxRetries_) 796 if (attempt >= maxRetries_)
796 { 797 {
797 throw; 798 throw;
806 } 807 }
807 else 808 else
808 { 809 {
809 throw; 810 throw;
810 } 811 }
812 #else
813 throw;
814 #endif
811 } 815 }
812 } 816 }
813 } 817 }
814 } 818 }