Rivet API documentation

Rivet 4.1.3
Exceptions.hh
1#ifndef RIVET_EXCEPTIONS_HH
2#define RIVET_EXCEPTIONS_HH
3
4#include <exception>
5#include <stdexcept>
6#include <string>
7
8namespace Rivet {
9
10
12 struct Error : public std::runtime_error {
13 Error(const std::string& what)
14 : std::runtime_error(what) { }
15 };
16
17
20
21
23 struct RangeError : public Error {
24 RangeError(const std::string& what)
25 : Error(what) { }
26 };
27
28
30 struct LogicError : public Error {
31 LogicError(const std::string& what)
32 : Error(what) { }
33 };
34
35
37 struct PidError : public Error {
38 PidError(const std::string& what)
39 : Error(what) { }
40 };
41
42
44 struct InfoError : public Error {
45 InfoError(const std::string& what)
46 : Error(what) { }
47 };
48
49
51 struct BeamError : public Error {
52 BeamError(const std::string& what)
53 : Error(what) { }
54 };
55
56
58 struct SmearError : public Error {
59 SmearError(const std::string& what)
60 : Error(what) { }
61 };
62
63
68 struct WeightError : public Error {
69 WeightError(const std::string& what)
70 : Error(what) { }
71 };
72
73
75 struct UserError : public Error {
76 UserError(const std::string& what)
77 : Error(what) { }
78 };
79
80
82 struct LookupError : public Error {
83 LookupError(const std::string& what)
84 : Error(what) { }
85 };
86
87
89 struct DataError : public Error {
90 DataError(const std::string& what)
91 : Error(what) { }
92 };
93
94
96 struct IOError : public Error {
97 IOError(const std::string& what)
98 : Error(what) { }
99 };
100
102 struct ReadError : public IOError {
103 ReadError(const std::string& what)
104 : IOError(what) { }
105 };
106
108 struct WriteError : public IOError {
109 WriteError(const std::string& what)
110 : IOError(what) { }
111 };
112
113
114}
115
116#endif
Definition LHCbCommon.hh:9
Error Exception
Rivet::Exception is a synonym for Rivet::Error.
Definition Exceptions.hh:19
Generic runtime Rivet error.
Definition Exceptions.hh:12