source: trunk/lib/yat/Exception.h.diff @ 1027

Last change on this file since 1027 was 824, checked in by Peter Johansson, 12 years ago

adding missing file Exception.h.diff

File size: 1.1 KB
Line 
1*** Exception.h Sun Jun 28 12:10:18 2009
2--- Exception.h.modified  Sun Jun 28 16:26:49 2009
3***************
4*** 25,32 ****
5  #include <stdexcept>
6  #include <string>
7 
8- #include <gsl/gsl_errno.h>
9-
10  namespace theplu {
11  namespace yat {
12  namespace utility {
13--- 25,30 ----
14***************
15*** 48,78 ****
16 
17 
18    /**
19-      \brief Class for errors reported from underlying GSL calls.
20-
21-      GSL_error is used in the same way as C++ standard library
22-      exceptions.
23-   */
24-   class GSL_error : public std::runtime_error
25-   {
26-   public:
27-     /**
28-        \brief Constructor to create an exception with a message.
29-     */
30-     inline GSL_error(std::string message) throw()
31-       : std::runtime_error("GSL_error: " + message) {}
32-
33-     /**
34-        \brief Constructor to create an exception with a message
35-        containg the GSL error description.
36-     */
37-     inline GSL_error(std::string message, int gsl_status) throw()
38-       : std::runtime_error("GSL_error: " + message + " " +
39-                            gsl_strerror(gsl_status)) {}
40-   };
41-
42-
43-   /**
44       \brief Class to report errors associated with IO operations.
45 
46       IO_error is used in the same way as C++ standard library
47--- 46,51 ----
Note: See TracBrowser for help on using the repository browser.