comparison Framework/Plugins/DatabaseBackendAdapterV3.cpp @ 253:3bc442765b88

new configuration option: "IndexConnectionsCount"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Apr 2021 15:08:51 +0200
parents ed12248ad791
children d663d9e44f8d
comparison
equal deleted inserted replaced
252:33fa478c119a 253:3bc442765b88
115 backend_(backend), 115 backend_(backend),
116 countConnections_(countConnections) 116 countConnections_(countConnections)
117 { 117 {
118 if (countConnections == 0) 118 if (countConnections == 0)
119 { 119 {
120 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); 120 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange,
121 "There must be a non-zero number of connections to the database");
121 } 122 }
122 else if (backend == NULL) 123 else if (backend == NULL)
123 { 124 {
124 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer); 125 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer);
125 } 126 }