YODA is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis  1.3.1
Exceptions.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // This file is part of YODA -- Yet more Objects for Data Analysis
4 // Copyright (C) 2008-2015 The YODA collaboration (see AUTHORS for details)
5 //
6 #ifndef YODA_Exception_h
7 #define YODA_Exception_h
8 
9 #include <string>
10 #include <exception>
11 #include <stdexcept>
12 
13 namespace YODA {
14 
15 
20  class Exception : public std::runtime_error {
21  public:
22  Exception(const std::string& what) : std::runtime_error(what) {}
23  };
24 
25 
27  class BinningError : public Exception {
28  public:
29  BinningError(const std::string& what) : Exception(what) {}
30  };
31 
32 
34  class RangeError : public Exception {
35  public:
36  RangeError(const std::string& what) : Exception(what) {}
37  };
38 
39 
41  class LockError : public Exception {
42  public:
43  LockError(const std::string& what) : Exception(what) {}
44  };
45 
46 
48  class GridError : public Exception {
49  public:
50  GridError(const std::string& what) : Exception(what) {}
51  };
52 
53 
55  class LogicError : public Exception {
56  public:
57  LogicError(const std::string& what) : Exception(what) {}
58  };
59 
60 
65  class WeightError : public Exception {
66  public:
67  WeightError(const std::string& what) : Exception(what) {}
68  };
69 
70 
72  class LowStatsError : public Exception {
73  public:
74  LowStatsError(const std::string& what) : Exception(what) {}
75  };
76 
77 
79  class AnnotationError : public Exception {
80  public:
81  AnnotationError(const std::string& what) : Exception(what) {}
82  };
83 
84 
86  class ReadError : public Exception {
87  public:
88  ReadError(const std::string& what) : Exception(what) {}
89  };
90 
91 
93  class UserError : public Exception {
94  public:
95  UserError(const std::string& what) : Exception(what) {}
96  };
97 
98 
99 }
100 
101 #endif
LockError(const std::string &what)
Definition: Exceptions.h:43
Error to throw when a slicing is requested on a non-slicable state of an object.
Definition: Exceptions.h:48
Generic unspecialised YODA runtime error.
Definition: Exceptions.h:20
Error for e.g. use of invalid bin ranges.
Definition: Exceptions.h:34
GridError(const std::string &what)
Definition: Exceptions.h:50
LogicError(const std::string &what)
Definition: Exceptions.h:57
ReadError(const std::string &what)
Definition: Exceptions.h:88
Error for problems introduced outside YODA, to put it nicely.
Definition: Exceptions.h:93
LowStatsError(const std::string &what)
Definition: Exceptions.h:74
Errors relating to insufficient (effective) statistics.
Definition: Exceptions.h:72
Error for modification of a data object where filling has already begun.
Definition: Exceptions.h:41
Error for places where it should not have been possible to get to!
Definition: Exceptions.h:55
Error for general binning problems.
Definition: Exceptions.h:27
Errors relating to event/bin weights.
Definition: Exceptions.h:65
WeightError(const std::string &what)
Definition: Exceptions.h:67
Error for unfound or broken AnalysisObject annotations.
Definition: Exceptions.h:79
RangeError(const std::string &what)
Definition: Exceptions.h:36
UserError(const std::string &what)
Definition: Exceptions.h:95
Exception(const std::string &what)
Definition: Exceptions.h:22
AnnotationError(const std::string &what)
Definition: Exceptions.h:81
BinningError(const std::string &what)
Definition: Exceptions.h:29
Error for file reading errors.
Definition: Exceptions.h:86