LHAPDF 6.5.5
Loading...
Searching...
No Matches
Exceptions.h
1// -*- C++ -*-
2//
3// This file is part of LHAPDF
4// Copyright (C) 2012-2024 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
13namespace 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
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
FactoryError(const std::string &what)
Constructor with error description string.
Definition Exceptions.h:81
FlavorError(const std::string &what)
Constructor with error description string.
Definition Exceptions.h:73
GridError(const std::string &what)
Constructor with error description string.
Definition Exceptions.h:33
IndexError(const std::string &what)
Constructor with error description string.
Definition Exceptions.h:89
LogicError(const std::string &what)
Constructor with error description string.
Definition Exceptions.h:49
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
RangeError(const std::string &what)
Constructor with error description string.
Definition Exceptions.h:41
ReadError(const std::string &what)
Constructor with error description string.
Definition Exceptions.h:65
UserError(const std::string &what)
Constructor with error description string.
Definition Exceptions.h:113
VersionError(const std::string &what)
Constructor with error description string.
Definition Exceptions.h:105
Namespace for all LHAPDF functions and classes.
Definition AlphaS.h:14