yat  0.21pre
Exception.h
1 #ifndef _theplu_yat_utility_exception_
2 #define _theplu_yat_utility_exception_
3 
4 // $Id: Exception.h 4089 2021-09-07 00:56:40Z peter $
5 
6 /*
7  Copyright (C) 2005, 2006, 2007, 2008 Jari H√§kkinen, Peter Johansson
8  Copyright (C) 2010, 2011, 2020 Peter Johansson
9 
10  This file is part of the yat library, http://dev.thep.lu.se/yat
11 
12  The yat library is free software; you can redistribute it and/or
13  modify it under the terms of the GNU General Public License as
14  published by the Free Software Foundation; either version 3 of the
15  License, or (at your option) any later version.
16 
17  The yat library is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  General Public License for more details.
21 
22  You should have received a copy of the GNU General Public License
23  along with yat. If not, see <http://www.gnu.org/licenses/>.
24 */
25 
26 #include <stdexcept>
27 #include <string>
28 
29 namespace theplu {
30 namespace yat {
31 namespace utility {
32 
38  class invalid_argument : public std::invalid_argument
39  {
40  public:
46  invalid_argument(const std::string& message);
47  };
48 
49 
53  class runtime_error : public std::runtime_error
54  {
55  public:
61  runtime_error(std::string message);
62  };
63 
64 
68  class cmd_error : public runtime_error
69  {
70  public:
76  cmd_error(std::string message);
77  };
78 
79 
86  class errno_error : public runtime_error
87  {
88  public:
93  errno_error(std::string message);
94  };
95 
102  class GSL_error : public runtime_error
103  {
104  public:
108  GSL_error(std::string message);
109 
114  GSL_error(std::string message, int gsl_status);
115  };
116 
117 
124  class IO_error : public runtime_error
125  {
126  public:
130  IO_error(std::string message);
131  };
132 
133 }}} // of namespace utility, yat, and theplu
134 
135 #endif
Class used for all invalid arguments detected within yat library.
Definition: Exception.h:38
Class for errors reported from underlying GSL calls.
Definition: Exception.h:102
The Department of Theoretical Physics namespace as we define it.
errno_error(std::string message)
runtime_error(std::string message)
Constructor.
Class used for all runtime error detected within yat library.
Definition: Exception.h:53
Class that contains information reported via global variable errno.
Definition: Exception.h:86
Class to report errors associated with IO operations.
Definition: Exception.h:124
cmd_error(std::string message)
Constructor.
GSL_error(std::string message)
Constructor to create an exception with a message.
Class used for error reported from Commandline or Option.
Definition: Exception.h:68
IO_error(std::string message)
Constructor to create an exception with a message.
invalid_argument(const std::string &message)
Constructor.

Generated on Thu Sep 22 2022 03:23:05 for yat by  doxygen 1.8.14