Ignore:
Timestamp:
Apr 3, 2011, 5:42:44 PM (11 years ago)
Author:
Peter
Message:

make exception inherit from yat::utility::runtime_error rather than std::runtime_error. The former inherits from latter so exception classes still do inherit from std::runtime_error indirectly.

File:
1 edited

Legend:

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

    r2303 r2459  
    3939
    4040  cmd_error::cmd_error(std::string message)
    41     : std::runtime_error(message)
     41    : runtime_error(message)
    4242  {}
    4343
    4444
    4545  errno_error::errno_error(std::string message)
    46     : std::runtime_error(message + strerror(errno))
     46    : runtime_error(message + strerror(errno))
    4747  {}
    4848
    4949
    5050  GSL_error::GSL_error(std::string message)
    51     : std::runtime_error("GSL_error: " + message)
     51    : runtime_error("GSL_error: " + message)
    5252  {}
    5353
    5454
    5555  GSL_error::GSL_error(std::string message, int gsl_status)
    56     : std::runtime_error("GSL_error: " + message + " " +
     56    : runtime_error("GSL_error: " + message + " " +
    5757                         gsl_strerror(gsl_status))
    5858  {}
     
    6060
    6161  IO_error::IO_error(std::string message)
    62     : std::runtime_error("IO_error: " + message)
     62    : runtime_error("IO_error: " + message)
    6363  {}
    6464
Note: See TracChangeset for help on using the changeset viewer.