Changeset 761


Ignore:
Timestamp:
Feb 20, 2007, 6:26:05 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Fixes #7.

File:
1 edited

Legend:

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

    r751 r761  
    66/*
    77  Copyright (C) 2005 Jari Häkkinen, Peter Johansson
    8   Copyright (C) 2006 Jari Häkkinen
     8  Copyright (C) 2006, 2007 Jari Häkkinen
    99
    1010  This file is part of the yat library, http://lev.thep.lu.se/trac/yat
     
    3737  /**
    3838     \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.
    3942  */
    4043  class GSL_error : public std::runtime_error
     
    4245  public:
    4346    /**
    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.
    5048    */
    5149    inline GSL_error(std::string message) throw()
    5250      : std::runtime_error("GSL_error: " + message) {}
    5351
     52    /**
     53       \brief Constructor to create an exception with a message
     54       containg the GSL error description.
     55    */
    5456    inline GSL_error(std::string message, int gsl_status) throw()
    5557      : std::runtime_error("GSL_error: " + message + " " +
     
    5860
    5961
    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  */
    6368  class IO_error : public std::runtime_error
    6469  {
    6570  public:
    66     ///
    67     /// Default constructor
    68     ///
    69     inline IO_error(void) throw() : std::runtime_error("IO_error:") {}
    70 
    7171    /**
    72        \brief Constructor to create an exception with a message
     72       \brief Constructor to create an exception with a message.
    7373    */
    7474    inline IO_error(std::string message) throw()
Note: See TracChangeset for help on using the changeset viewer.