mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-19 16:27:13 +02:00
new exceptions
This commit is contained in:
@ -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