ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
HLT
Trigger
TrigControl
TrigKernel
TrigKernel
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
};
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
hltonl::Exception::BadCTPFragment::m_reason
std::string m_reason
Definition
HltExceptions.h:56
hltonl::Exception::BadCTPFragment::what
const char * what() const noexcept override
Definition
HltExceptions.h:54
hltonl::Exception::BadCTPFragment::BadCTPFragment
BadCTPFragment(std::string_view reason)
Definition
HltExceptions.h:51
hltonl::Exception::EventSourceCorrupted
Thrown if event source throws an exception when new event is requested.
Definition
HltExceptions.h:33
hltonl::Exception::EventSourceCorrupted::what
const char * what() const noexcept override
Definition
HltExceptions.h:35
hltonl::Exception::MissingCTPFragment
Thrown if the CTP ROBFragment cannot be retrieved for a new event.
Definition
HltExceptions.h:41
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.
Definition
HltExceptions.h:25
hltonl::Exception::NoEventsTemporarily::what
const char * what() const noexcept override
Definition
HltExceptions.h:27
hltonl::Exception::NoMoreEvents
Thrown if all events are already read from the input and another one is requested.
Definition
HltExceptions.h:17
hltonl::Exception::NoMoreEvents::what
const char * what() const noexcept override
Definition
HltExceptions.h:19
const
hltonl::Exception
Definition
HltExceptions.h:12
Generated on
for ATLAS Offline Software by
1.17.0