Changeset 750 for trunk/yat/utility


Ignore:
Timestamp:
Feb 17, 2007, 11:56:29 AM (15 years ago)
Author:
Jari Häkkinen
Message:

Addresses #2. Continued adding GSL_error exceptions.

File:
1 edited

Legend:

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

    r738 r750  
    2929#include <string>
    3030
     31#include <gsl/gsl_errno.h>
     32
    3133namespace theplu {
    3234namespace yat {
     
    4850    */
    4951    inline GSL_error(std::string message) throw()
    50       : std::runtime_error("IO_error: " + message) {}
     52      : std::runtime_error("GSL_error: " + message) {}
     53
     54    inline GSL_error(std::string message, int gsl_status) throw()
     55      : std::runtime_error("GSL_error: " + message + gsl_strerror(gsl_status)) {}
    5156  };
    5257
Note: See TracChangeset for help on using the changeset viewer.