ATLAS Offline Software
Loading...
Searching...
No Matches
Trigger/TrigConfiguration/TrigConfIO/TrigConfIO/Exceptions.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGCONFIO_TRIGCONFIOEXCEPTIONS_H
6#define TRIGCONFIO_TRIGCONFIOEXCEPTIONS_H
7
8#include <exception>
9#include <string>
10
11namespace TrigConf {
12
13 class IOException : public std::exception {
14 public:
15 IOException(std::string msg);
16 virtual const char* what() const noexcept;
17 private:
18 const std::string m_msg;
19 };
20
21 class QueryException : public IOException {
22 public:
23 QueryException(std::string msg) : IOException(std::move(msg)) {}
24 };
25
27 public:
28 NoQueryException(std::string msg) : IOException(std::move(msg)) {}
29 };
30
31 class NoKeyException : public IOException {
32 public:
33 NoKeyException(std::string msg) : IOException(std::move(msg)) {}
34 };
35
36 class NoSMKException : public IOException {
37 public:
38 NoSMKException(std::string msg) : IOException(std::move(msg)) {}
39 };
40
42 public:
43 NoL1PSKException(std::string msg) : IOException(std::move(msg)) {}
44 };
45
47 public:
48 NoHLTPSKException(std::string msg) : IOException(std::move(msg)) {}
49 };
50
52 public:
53 NoBGSKException(std::string msg) : IOException(std::move(msg)) {}
54 };
55
57 public:
58 ParsingException(std::string msg) : IOException(std::move(msg)) {}
59 };
60
61 // data is not consistent json
63 public:
64 JsonParsingException(std::string msg) : IOException(std::move(msg)) {}
65 };
66
67 // data can not be written to file
69 public:
70 FileWritingException(std::string msg) : IOException(std::move(msg)) {}
71 };
72
73 // data can not be loaded from Crest
75 public:
76 CrestLoadingException(std::string msg) : IOException(std::move(msg)) {}
77 };
78
79}
80
81#endif
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22
STL namespace.
MsgStream & msg
Definition testRead.cxx:32