File indexing completed on 2025-12-16 10:19:19
0001
0002
0003
0004
0005
0006 #pragma once
0007 #ifndef LHAPDF_Exceptions_H
0008 #define LHAPDF_Exceptions_H
0009
0010 #include <exception>
0011 #include <stdexcept>
0012
0013 namespace LHAPDF {
0014
0015
0016
0017
0018
0019
0020
0021
0022 class Exception : public std::runtime_error {
0023 public:
0024
0025 Exception(const std::string& what) : std::runtime_error(what) {}
0026 };
0027
0028
0029
0030 class GridError : public Exception {
0031 public:
0032
0033 GridError(const std::string& what) : Exception(what) {}
0034 };
0035
0036
0037
0038 class RangeError : public Exception {
0039 public:
0040
0041 RangeError(const std::string& what) : Exception(what) {}
0042 };
0043
0044
0045
0046 class LogicError : public Exception {
0047 public:
0048
0049 LogicError(const std::string& what) : Exception(what) {}
0050 };
0051
0052
0053
0054 class MetadataError : public Exception {
0055 public:
0056
0057 MetadataError(const std::string& what) : Exception(what) {}
0058 };
0059
0060
0061
0062 class ReadError : public Exception {
0063 public:
0064
0065 ReadError(const std::string& what) : Exception(what) {}
0066 };
0067
0068
0069
0070 class FlavorError : public Exception {
0071 public:
0072
0073 FlavorError(const std::string& what) : Exception(what) {}
0074 };
0075
0076
0077
0078 class FactoryError : public Exception {
0079 public:
0080
0081 FactoryError(const std::string& what) : Exception(what) {}
0082 };
0083
0084
0085
0086 class IndexError : public Exception {
0087 public:
0088
0089 IndexError(const std::string& what) : Exception(what) {}
0090 };
0091
0092
0093
0094 class AlphaSError : public Exception {
0095 public:
0096
0097 AlphaSError(const std::string& what) : Exception(what) {}
0098 };
0099
0100
0101
0102 class VersionError : public Exception {
0103 public:
0104
0105 VersionError(const std::string& what) : Exception(what) {}
0106 };
0107
0108
0109
0110 class UserError : public Exception {
0111 public:
0112
0113 UserError(const std::string& what) : Exception(what) {}
0114 };
0115
0116
0117
0118 class NotImplementedError : public Exception {
0119 public:
0120
0121 NotImplementedError(const std::string& what) : Exception(what) {}
0122 };
0123
0124
0125
0126
0127 }
0128 #endif