Rivet  1.8.3
Exceptions.hh
1 #ifndef RIVET_EXCEPTIONS_HH
2 #define RIVET_EXCEPTIONS_HH
3 
4 #include <string>
5 #include <exception>
6 #include <stdexcept>
7 
8 namespace Rivet {
9 
10 
12  class Error : public std::runtime_error {
13  public:
14  Error(const std::string& what) : std::runtime_error(what) {}
15  };
16 
17 
19  typedef Error Exception;
20 
21 
23  class RangeError : public Error {
24  public:
25  RangeError(const std::string& what) : Error(what) {}
26  };
27 
28 
30  class LogicError : public Error {
31  public:
32  LogicError(const std::string& what) : Error(what) {}
33  };
34 
35 
37  class PidError : public Error {
38  public:
39  PidError(const std::string& what) : Error(what) {}
40  };
41 
42 
44  class InfoError : public Error {
45  public:
46  InfoError(const std::string& what) : Error(what) {}
47  };
48 
49 
54  class WeightError : public Error {
55  public:
56  WeightError(const std::string& what) : Error(what) {}
57  };
58 
59 
61  class UserError : public Error {
62  public:
63  UserError(const std::string& what) : Error(what) {}
64  };
65 
66 
67 }
68 
69 #endif
Definition: MC_JetAnalysis.hh:9
Error specialisation for failures relating to particle ID codes.
Definition: Exceptions.hh:37
Error for e.g. use of invalid bin ranges.
Definition: Exceptions.hh:23
Error specialisation for where the problem is between the chair and computer.
Definition: Exceptions.hh:61
Error specialisation for failures relating to analysis info.
Definition: Exceptions.hh:44
Errors relating to event/bin weights.
Definition: Exceptions.hh:54
Error Exception
Rivet::Exception is a synonym for Rivet::Error.
Definition: Exceptions.hh:19
Error specialisation for places where alg logic has failed.
Definition: Exceptions.hh:30
Generic runtime Rivet error.
Definition: Exceptions.hh:12