ATLAS Offline Software
HltExceptions.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef HltExceptions_H
6 #define HltExceptions_H
7 
8 #include <exception>
9 #include <string_view>
10 #include <string>
11 
12 namespace hltonl::Exception {
17  class NoMoreEvents : public std::exception {
18  public:
19  const char* what() const noexcept override {return "No more events to be processed";}
20  };
26  public:
27  const char* what() const noexcept override {return "No events can be provided temporarily";}
28  };
34  public:
35  const char* what() const noexcept override {return "Event source corrupted and cannot provide events";}
36  };
42  public:
43  const char* what() const noexcept override {return "Missing CTP ROBFragment";}
44  };
49  class BadCTPFragment : public std::exception {
50  public:
51  BadCTPFragment(std::string_view reason) {
52  m_reason.append(reason);
53  }
54  const char* what() const noexcept override {return m_reason.data();}
55  private:
56  std::string m_reason{"Bad CTP ROBFragment: "};
57  };
58 }
59 
60 #endif // HltExceptions_H
hltonl::Exception::MissingCTPFragment
Thrown if the CTP ROBFragment cannot be retrieved for a new event.
Definition: HltExceptions.h:41
hltonl::Exception::EventSourceCorrupted
Thrown if event source throws an exception when new event is requested.
Definition: HltExceptions.h:33
hltonl::Exception::BadCTPFragment::what
const char * what() const noexcept override
Definition: HltExceptions.h:54
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
hltonl::Exception
Definition: HltExceptions.h:12
hltonl::Exception::NoEventsTemporarily::what
const char * what() const noexcept override
Definition: HltExceptions.h:27
hltonl::Exception::BadCTPFragment
Thrown if the CTP ROBFragment for a new event has non-zero status word or other errors.
Definition: HltExceptions.h:49
calibdata.exception
exception
Definition: calibdata.py:496
hltonl::Exception::BadCTPFragment::m_reason
std::string m_reason
Definition: HltExceptions.h:56
hltonl::Exception::MissingCTPFragment::what
const char * what() const noexcept override
Definition: HltExceptions.h:43
hltonl::Exception::NoEventsTemporarily
Thrown if the event source cannot provide new events temporarily, e.g. when trigger is on hold.
Definition: HltExceptions.h:25
hltonl::Exception::NoMoreEvents::what
const char * what() const noexcept override
Definition: HltExceptions.h:19
hltonl::Exception::BadCTPFragment::BadCTPFragment
BadCTPFragment(std::string_view reason)
Definition: HltExceptions.h:51
hltonl::Exception::EventSourceCorrupted::what
const char * what() const noexcept override
Definition: HltExceptions.h:35
hltonl::Exception::NoMoreEvents
Thrown if all events are already read from the input and another one is requested.
Definition: HltExceptions.h:17