yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis  1.7.2
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-2017 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);
23  };
24 
25 
27  class BinningError : public Exception {
28  public:
29  BinningError(const std::string& what);
30  };
31 
32 
34  class RangeError : public Exception {
35  public:
36  RangeError(const std::string& what);
37  };
38 
39 
41  class LockError : public Exception {
42  public:
43  LockError(const std::string& what);
44  };
45 
46 
48  class GridError : public Exception {
49  public:
50  GridError(const std::string& what);
51  };
52 
53 
55  class LogicError : public Exception {
56  public:
57  LogicError(const std::string& what);
58  };
59 
60 
65  class WeightError : public Exception {
66  public:
67  WeightError(const std::string& what);
68  };
69 
70 
72  class LowStatsError : public Exception {
73  public:
74  LowStatsError(const std::string& what);
75  };
76 
77 
79  class AnnotationError : public Exception {
80  public:
81  AnnotationError(const std::string& what);
82  };
83 
84 
86  class ReadError : public Exception {
87  public:
88  ReadError(const std::string& what);
89  };
90 
91 
93  class WriteError : public Exception {
94  public:
95  WriteError(const std::string& what);
96  };
97 
98 
100  class UserError : public Exception {
101  public:
102  UserError(const std::string& what);
103  };
104 
105 
106 }
107 
108 #endif
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 file writing errors.
Definition: Exceptions.h:93
Error for e.g. use of invalid bin ranges.
Definition: Exceptions.h:34
Error for problems introduced outside YODA, to put it nicely.
Definition: Exceptions.h:100
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
Error for unfound or broken AnalysisObject annotations.
Definition: Exceptions.h:79
Exception(const std::string &what)
Definition: Exceptions.cc:19
Error for file reading errors.
Definition: Exceptions.h:86