moving SharedMemory into namespace sls

This commit is contained in:
Erik Frojdh
2019-03-14 16:51:38 +01:00
parent 40d2f66146
commit bad44f5bf4
6 changed files with 20 additions and 11 deletions

View File

@ -24,6 +24,10 @@
#include <sys/types.h>
#include <cassert>
using sls::SharedMemory;
using sls::SharedMemoryError;
using sls::RuntimeError;
#define DEFAULT_HOSTNAME "localhost"
slsDetector::slsDetector(detectorType type, int multiId, int id, bool verify)
@ -290,7 +294,7 @@ void slsDetector::setDetectorSpecificParameters(detectorType type, detParameterL
break;
default:
FILE_LOG(logERROR) << "Unknown detector type! " << type;
throw std::exception();
throw RuntimeError("Unknown detector type");
}
}