Changeset 738 for trunk/yat/utility


Ignore:
Timestamp:
Jan 8, 2007, 12:08:39 AM (15 years ago)
Author:
Jari Häkkinen
Message:

Fixes #8 and #179, addresses #2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/Exception.h

    r718 r738  
    3333namespace utility {
    3434
     35  /**
     36     \brief Class for errors reported from underlying GSL calls.
     37  */
     38  class GSL_error : public std::runtime_error
     39  {
     40  public:
     41    /**
     42       \brief The default constructor
     43    */
     44    inline GSL_error(void) throw() : std::runtime_error("GSL_error:") {}
     45
     46    /**
     47       \brief Constructor to create an exception with a message
     48    */
     49    inline GSL_error(std::string message) throw()
     50      : std::runtime_error("IO_error: " + message) {}
     51  };
     52
     53
    3554  ///
    3655  /// @brief Class for IO errors
     
    4463    inline IO_error(void) throw() : std::runtime_error("IO_error:") {}
    4564
    46     ///
    47     /// Constructor for exception with message
    48     ///
     65    /**
     66       \brief Constructor to create an exception with a message
     67    */
    4968    inline IO_error(std::string message) throw()
    5069      : std::runtime_error("IO_error: " + message) {}
Note: See TracChangeset for help on using the changeset viewer.