mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 19:30:03 +02:00
handling start acq call back exception
This commit is contained in:
parent
0cb7d62ad5
commit
f19bc8880a
@ -497,10 +497,15 @@ void Implementation::startReceiver() {
|
||||
|
||||
// callbacks
|
||||
if (startAcquisitionCallBack) {
|
||||
try {
|
||||
startAcquisitionCallBack(filePath, fileName, fileIndex,
|
||||
(generalData->imageSize) +
|
||||
(generalData->fifoBufferHeaderSize),
|
||||
pStartAcquisition);
|
||||
} catch (const std::exception &e) {
|
||||
throw sls::RuntimeError("Start Acquisition Callback Error: " +
|
||||
std::string(e.what()));
|
||||
}
|
||||
if (rawDataReadyCallBack != nullptr) {
|
||||
LOG(logINFO) << "Data Write has been defined externally";
|
||||
}
|
||||
|
@ -28,7 +28,8 @@ int StartAcq(std::string filepath, std::string filename, uint64_t fileindex,
|
||||
<< " filename:" << filename << " fileindex:" << fileindex
|
||||
<< " datasize:" << datasize << " ####";
|
||||
|
||||
throw std::runtime_error("start acquisition call back error");
|
||||
throw std::runtime_error(
|
||||
"Throwing exception from start acquisition call back");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user