yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis 2.0.0
Exceptions.cc
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-2016 The YODA collaboration (see AUTHORS for details)
5//
6#include "YODA/Exceptions.h"
7
8// !!! DO NOT MOVE THESE DEFINITIONS INTO THE HEADER !!!!
9
10// Exceptions need to be defined in _one_ specific library.
11//
12// If the defn.s live in the header, any library including them
13// will have its own copy. These copies are _not_ mutually
14// interchangeable, and throw / catch across a library
15// boundary will not work.
16
17// !!! DO NOT MOVE THESE DEFINITIONS INTO THE HEADER !!!!
18
19YODA::Exception::Exception(const std::string& what)
20 : std::runtime_error(what) {}
21
22YODA::BinningError::BinningError(const std::string& what)
23 : YODA::Exception(what) {}
24
25YODA::RangeError::RangeError(const std::string& what)
26 : YODA::Exception(what) {}
27
28YODA::LockError::LockError(const std::string& what)
29 : YODA::Exception(what) {}
30
31YODA::GridError::GridError(const std::string& what)
32 : YODA::Exception(what) {}
33
34YODA::LogicError::LogicError(const std::string& what)
35 : YODA::Exception(what) {}
36
37YODA::WeightError::WeightError(const std::string& what)
38 : YODA::Exception(what) {}
39
40YODA::LowStatsError::LowStatsError(const std::string& what)
41 : YODA::Exception(what) {}
42
44 : YODA::Exception(what) {}
45
46YODA::ReadError::ReadError(const std::string& what)
47 : YODA::Exception(what) {}
48
49YODA::WriteError::WriteError(const std::string& what)
50 : YODA::Exception(what) {}
51
52YODA::UserError::UserError(const std::string& what)
53 : YODA::Exception(what) {}
AnnotationError(const std::string &what)
Definition Exceptions.cc:43
BinningError(const std::string &what)
Definition Exceptions.cc:22
Generic unspecialised YODA runtime error.
Definition Exceptions.h:20
Exception(const std::string &what)
Definition Exceptions.cc:19
GridError(const std::string &what)
Definition Exceptions.cc:31
LockError(const std::string &what)
Definition Exceptions.cc:28
LogicError(const std::string &what)
Definition Exceptions.cc:34
LowStatsError(const std::string &what)
Definition Exceptions.cc:40
RangeError(const std::string &what)
Definition Exceptions.cc:25
ReadError(const std::string &what)
Definition Exceptions.cc:46
UserError(const std::string &what)
Definition Exceptions.cc:52
WeightError(const std::string &what)
Definition Exceptions.cc:37
WriteError(const std::string &what)
Definition Exceptions.cc:49
Anonymous namespace to limit visibility.