Skip to content
Snippets Groups Projects
Commit 3ae2c87f authored by Eric Torrence's avatar Eric Torrence
Browse files

Catch raw data format errors

parent e960cb5f
No related branches found
No related tags found
No related merge requests found
......@@ -128,6 +128,11 @@ const EventFull* FaserByteStreamInputSvc::nextEvent() {
// Attempt to read beyond end of file, likely truncated event
ATH_MSG_WARNING("DataReader reports FaserEventStorage::ES_OutOfFileBoundary, stop reading file!");
return NULL;
} catch (const DAQFormats::EFormatException& e) {
// Format error
ATH_MSG_WARNING("DataReader reports DAQFormats::EFormatException, stop reading file!");
ATH_MSG_WARNING(e.what());
return NULL;
} catch (...) {
// rethrow any other exceptions
throw;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment