yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis  1.9.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 
19 YODA::Exception::Exception(const std::string& what)
20  : std::runtime_error(what) {}
21 
22 YODA::BinningError::BinningError(const std::string& what)
23  : YODA::Exception(what) {}
24 
25 YODA::RangeError::RangeError(const std::string& what)
26  : YODA::Exception(what) {}
27 
28 YODA::LockError::LockError(const std::string& what)
29  : YODA::Exception(what) {}
30 
31 YODA::GridError::GridError(const std::string& what)
32  : YODA::Exception(what) {}
33 
34 YODA::LogicError::LogicError(const std::string& what)
35  : YODA::Exception(what) {}
36 
37 YODA::WeightError::WeightError(const std::string& what)
38  : YODA::Exception(what) {}
39 
40 YODA::LowStatsError::LowStatsError(const std::string& what)
41  : YODA::Exception(what) {}
42 
43 YODA::AnnotationError::AnnotationError(const std::string& what)
44  : YODA::Exception(what) {}
45 
46 YODA::ReadError::ReadError(const std::string& what)
47  : YODA::Exception(what) {}
48 
49 YODA::WriteError::WriteError(const std::string& what)
50  : YODA::Exception(what) {}
51 
52 YODA::UserError::UserError(const std::string& what)
53  : YODA::Exception(what) {}
WriteError(const std::string &what)
Definition: Exceptions.cc:49
LockError(const std::string &what)
Definition: Exceptions.cc:28
Generic unspecialised YODA runtime error.
Definition: Exceptions.h:20
STL namespace.
GridError(const std::string &what)
Definition: Exceptions.cc:31
LogicError(const std::string &what)
Definition: Exceptions.cc:34
ReadError(const std::string &what)
Definition: Exceptions.cc:46
LowStatsError(const std::string &what)
Definition: Exceptions.cc:40
WeightError(const std::string &what)
Definition: Exceptions.cc:37
RangeError(const std::string &what)
Definition: Exceptions.cc:25
UserError(const std::string &what)
Definition: Exceptions.cc:52
Exception(const std::string &what)
Definition: Exceptions.cc:19
AnnotationError(const std::string &what)
Definition: Exceptions.cc:43
BinningError(const std::string &what)
Definition: Exceptions.cc:22