lhapdf is hosted by Hepforge, IPPP Durham
LHAPDF  6.5.4
Exceptions.h
1 // -*- C++ -*-
2 //
3 // This file is part of LHAPDF
4 // Copyright (C) 2012-2023 The LHAPDF collaboration (see AUTHORS for details)
5 //
6 #pragma once
7 #ifndef LHAPDF_Exceptions_H
8 #define LHAPDF_Exceptions_H
9 
10 #include <exception>
11 #include <stdexcept>
12 
13 namespace LHAPDF {
14 
15 
18 
22  class Exception : public std::runtime_error {
23  public:
25  Exception(const std::string& what) : std::runtime_error(what) {}
26  };
27 
28 
30  class GridError : public Exception {
31  public:
33  GridError(const std::string& what) : Exception(what) {}
34  };
35 
36 
38  class RangeError : public Exception {
39  public:
41  RangeError(const std::string& what) : Exception(what) {}
42  };
43 
44 
46  class LogicError : public Exception {
47  public:
49  LogicError(const std::string& what) : Exception(what) {}
50  };
51 
52 
54  class MetadataError : public Exception {
55  public:
57  MetadataError(const std::string& what) : Exception(what) {}
58  };
59 
60 
62  class ReadError : public Exception {
63  public:
65  ReadError(const std::string& what) : Exception(what) {}
66  };
67 
68 
70  class FlavorError : public Exception {
71  public:
73  FlavorError(const std::string& what) : Exception(what) {}
74  };
75 
76 
78  class FactoryError : public Exception {
79  public:
81  FactoryError(const std::string& what) : Exception(what) {}
82  };
83 
84 
86  class IndexError : public Exception {
87  public:
89  IndexError(const std::string& what) : Exception(what) {}
90  };
91 
92 
94  class AlphaSError : public Exception {
95  public:
97  AlphaSError(const std::string& what) : Exception(what) {}
98  };
99 
100 
102  class VersionError : public Exception {
103  public:
105  VersionError(const std::string& what) : Exception(what) {}
106  };
107 
108 
110  class UserError : public Exception {
111  public:
113  UserError(const std::string& what) : Exception(what) {}
114  };
115 
116 
119  public:
121  NotImplementedError(const std::string& what) : Exception(what) {}
122  };
123 
125 
126 
127 }
128 #endif
Error for places where it should not have been possible to get to!
Definition: Exceptions.h:46
Generic unspecialised LHAPDF runtime error.
Definition: Exceptions.h:22
Error to be thrown when out of the valid range of a PDF.
Definition: Exceptions.h:38
Error for requests for unsupported/invalid flavour PIDs.
Definition: Exceptions.h:70
Error to be raised by object factories given invalid requests.
Definition: Exceptions.h:78
Error to be raised when a newer LHAPDF version is needed.
Definition: Exceptions.h:102
Error for unfound or broken metadata entries.
Definition: Exceptions.h:54
RangeError(const std::string &what)
Constructor with error description string.
Definition: Exceptions.h:41
This feature doesn&#39;t exist yet.
Definition: Exceptions.h:118
AlphaSError(const std::string &what)
Constructor with error description string.
Definition: Exceptions.h:97
Exception(const std::string &what)
Constructor with error description string.
Definition: Exceptions.h:25
FlavorError(const std::string &what)
Constructor with error description string.
Definition: Exceptions.h:73
Error for general AlphaS computation problems.
Definition: Exceptions.h:94
ReadError(const std::string &what)
Constructor with error description string.
Definition: Exceptions.h:65
Error for general PDF grid problems.
Definition: Exceptions.h:30
LogicError(const std::string &what)
Constructor with error description string.
Definition: Exceptions.h:49
FactoryError(const std::string &what)
Constructor with error description string.
Definition: Exceptions.h:81
Error to be raised when a LHAPDF ID indexing fails.
Definition: Exceptions.h:86
MetadataError(const std::string &what)
Constructor with error description string.
Definition: Exceptions.h:57
NotImplementedError(const std::string &what)
Constructor with error description string.
Definition: Exceptions.h:121
VersionError(const std::string &what)
Constructor with error description string.
Definition: Exceptions.h:105
Error for file reading errors.
Definition: Exceptions.h:62
UserError(const std::string &what)
Constructor with error description string.
Definition: Exceptions.h:113
IndexError(const std::string &what)
Constructor with error description string.
Definition: Exceptions.h:89
GridError(const std::string &what)
Constructor with error description string.
Definition: Exceptions.h:33
Problem exists between keyboard and chair.
Definition: Exceptions.h:110