ATLAS Offline Software
Loading...
Searching...
No Matches
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
17 class NoMoreEvents : public std::exception {
18 public:
19 const char* what() const noexcept override {return "No more events to be processed";}
20 };
21
25 class NoEventsTemporarily : public std::exception {
26 public:
27 const char* what() const noexcept override {return "No events can be provided temporarily";}
28 };
29
33 class EventSourceCorrupted : public std::exception {
34 public:
35 const char* what() const noexcept override {return "Event source corrupted and cannot provide events";}
36 };
37
41 class MissingCTPFragment : public std::exception {
42 public:
43 const char* what() const noexcept override {return "Missing CTP ROBFragment";}
44 };
45
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
const char * what() const noexcept override
BadCTPFragment(std::string_view reason)
Thrown if event source throws an exception when new event is requested.
const char * what() const noexcept override
Thrown if the CTP ROBFragment cannot be retrieved for a new event.
const char * what() const noexcept override
Thrown if the event source cannot provide new events temporarily, e.g.
const char * what() const noexcept override
Thrown if all events are already read from the input and another one is requested.
const char * what() const noexcept override