mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
new exceptions
This commit is contained in:
@ -314,7 +314,7 @@ void multiSlsDetector::initSharedMemory(bool verify) {
|
||||
FILE_LOG(logERROR) << "Multi shared memory (" << detId << ") version mismatch "
|
||||
"(expected 0x"
|
||||
<< std::hex << MULTI_SHMVERSION << " but got 0x" << multi_shm()->shmversion << std::dec;
|
||||
throw SharedMemoryException();
|
||||
throw SharedMemoryError("Shared memory version mismatch!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -12,6 +12,8 @@
|
||||
#include <cstdlib>
|
||||
#include <memory>
|
||||
|
||||
using sls::RuntimeError;
|
||||
|
||||
inline int dummyCallback(detectorData *d, int p, void *) {
|
||||
std::cout << "got data " << p << std::endl;
|
||||
return 0;
|
||||
@ -73,7 +75,7 @@ class multiSlsDetectorClient {
|
||||
try {
|
||||
localDet = sls::make_unique<multiSlsDetector>(parser.multi_id(), verify, update);
|
||||
detPtr = localDet.get();
|
||||
} catch (const SlsDetectorPackageExceptions &e) {
|
||||
} catch (const RuntimeError &e) {
|
||||
/*std::cout << e.GetMessage() << std::endl;*/
|
||||
return;
|
||||
} catch (...) {
|
||||
|
Reference in New Issue
Block a user