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.h

    r2331 r2459  
    5151     \brief Class used for error reported from Commandline or Option.
    5252   */
    53   class cmd_error : public std::runtime_error
     53  class cmd_error : public runtime_error
    5454  {
    5555  public:
     
    6969     \since New in yat 0.7
    7070   */
    71   class errno_error : public std::runtime_error
     71  class errno_error : public runtime_error
    7272  {
    7373  public:
     
    8585     exceptions.
    8686  */
    87   class GSL_error : public std::runtime_error
     87  class GSL_error : public runtime_error
    8888  {
    8989  public:
     
    107107     exceptions.
    108108  */
    109   class IO_error : public std::runtime_error
     109  class IO_error : public runtime_error
    110110  {
    111111  public:
Note: See TracChangeset for help on using the changeset viewer.