yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis 2.0.3
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-2024 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
13namespace 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 LogicError : public Exception {
42 public:
43 LogicError(const std::string& what);
44 };
45
46
51 class WeightError : public Exception {
52 public:
53 WeightError(const std::string& what);
54 };
55
56
58 //class LowStatsError : public Exception {
59 //public:
60 // LowStatsError(const std::string& what);
61 //};
62
63
65 class AnnotationError : public Exception {
66 public:
67 AnnotationError(const std::string& what);
68 };
69
70
72 class ReadError : public Exception {
73 public:
74 ReadError(const std::string& what);
75 };
76
77
79 class WriteError : public Exception {
80 public:
81 WriteError(const std::string& what);
82 };
83
84
86 class UserError : public Exception {
87 public:
88 UserError(const std::string& what);
89 };
90
91
92}
93
94#endif
Errors relating to insufficient (effective) statistics.
Definition Exceptions.h:65
Error for general binning problems.
Definition Exceptions.h:27
Generic unspecialised YODA runtime error.
Definition Exceptions.h:20
Error for places where it should not have been possible to get to!
Definition Exceptions.h:41
Error for e.g. use of invalid bin ranges.
Definition Exceptions.h:34
Error for file reading errors.
Definition Exceptions.h:72
Error for problems introduced outside YODA, to put it nicely.
Definition Exceptions.h:86
Errors relating to event/bin weights.
Definition Exceptions.h:51
Error for file writing errors.
Definition Exceptions.h:79
Anonymous namespace to limit visibility.