- Timestamp:
- Feb 20, 2007, 6:26:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/Exception.h
r751 r761 6 6 /* 7 7 Copyright (C) 2005 Jari Häkkinen, Peter Johansson 8 Copyright (C) 2006 Jari Häkkinen8 Copyright (C) 2006, 2007 Jari Häkkinen 9 9 10 10 This file is part of the yat library, http://lev.thep.lu.se/trac/yat … … 37 37 /** 38 38 \brief Class for errors reported from underlying GSL calls. 39 40 GSL_error is used in the same way as C++ standard library 41 exceptions. 39 42 */ 40 43 class GSL_error : public std::runtime_error … … 42 45 public: 43 46 /** 44 \brief The default constructor 45 */ 46 inline GSL_error(void) throw() : std::runtime_error("GSL_error:") {} 47 48 /** 49 \brief Constructor to create an exception with a message 47 \brief Constructor to create an exception with a message. 50 48 */ 51 49 inline GSL_error(std::string message) throw() 52 50 : std::runtime_error("GSL_error: " + message) {} 53 51 52 /** 53 \brief Constructor to create an exception with a message 54 containg the GSL error description. 55 */ 54 56 inline GSL_error(std::string message, int gsl_status) throw() 55 57 : std::runtime_error("GSL_error: " + message + " " + … … 58 60 59 61 60 /// 61 /// @brief Class for IO errors 62 /// 62 /** 63 \brief Class to report errors associated with IO operations. 64 65 IO_error is used in the same way as C++ standard library 66 exceptions. 67 */ 63 68 class IO_error : public std::runtime_error 64 69 { 65 70 public: 66 ///67 /// Default constructor68 ///69 inline IO_error(void) throw() : std::runtime_error("IO_error:") {}70 71 71 /** 72 \brief Constructor to create an exception with a message 72 \brief Constructor to create an exception with a message. 73 73 */ 74 74 inline IO_error(std::string message) throw()
Note: See TracChangeset
for help on using the changeset viewer.