COIN-OR::LEMON - Graph Library

Changeset 1061:e3433c024123 in lemon-0.x for src/work


Ignore:
Timestamp:
01/08/05 21:12:50 (19 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1457
Message:
  • Empty doxygen comments
  • sconst -> const
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/klao/error.h

    r1056 r1061  
    3333  class ErrorMessage {
    3434  protected:
     35  ///\e
    3536    boost::shared_ptr<std::ostringstream> buf;
    3637   
     38  ///\e
    3739    bool init() throw() {
    3840      try {
     
    4749  public:
    4850
     51  ///\e
    4952    ErrorMessage() throw() { init(); }
    5053
     54  ///\e
    5155    ErrorMessage(const char *message) throw() {
    5256      init();
     
    5458    }
    5559
     60  ///\e
    5661    ErrorMessage(const std::string &message) throw() {
    5762      init();
     
    5964    }
    6065
     66  ///\e
    6167    template <typename T>
    6268    ErrorMessage& operator<<(const T &t) throw() {
     
    7177    }
    7278
     79  ///\e
    7380    const char* message() throw() {
    7481      if( !buf ) return 0;
     
    9198  class Exception : public std::exception, public ErrorMessage {
    9299  public:
     100  ///\e
    93101    Exception() throw() {}
     102  ///\e
    94103    explicit Exception(const std::string &s) throw()
    95104      : ErrorMessage(s) {}
     105  ///\e
    96106    virtual ~Exception() throw() {}
    97107   
     108  ///\e
    98109    virtual const char* what() const throw() {
    99110      const char *mes = message();
     
    103114  };
    104115
    105 
     116  ///\e
    106117  class LogicError : public Exception {
     118  ///\e
    107119    explicit LogicError(const std::string &s)
    108120      : Exception(s) {}
    109121  };
    110122
     123  ///\e
    111124  class RuntimeError : public Exception {
     125  ///\e
    112126    explicit RuntimeError(const std::string &s)
    113127      : Exception(s) {}
    114128  };
    115129
     130  ///\e
    116131  class RangeError : public RuntimeError {
     132  ///\e
    117133    explicit RangeError(const std::string &s)
    118134      : RuntimeError(s) {}
    119135  };
    120136
     137  ///\e
    121138  class IOError : public RuntimeError {
     139  ///\e
    122140    explicit IOError(const std::string &s)
    123141      : RuntimeError(s) {}
    124142  };
    125143
     144  ///\e
    126145  class DataFormatError : public IOError {
     146  ///\e
    127147    explicit DataFormatError(const std::string &message)
    128148      : IOError(message) : line(0) {}
     149  ///\e
    129150    DataFormatError(const std::string &file_name, int line_num,
    130                     sconst std::string &message)
     151                    const std::string &message)
    131152      : IOError(message), line(line_num) { set_file(file_name); }
    132153
     154  ///\e
    133155    void set_line(int line_num) { line=line_num; }
     156  ///\e
    134157    void set_file(const std::string &file_name) {
    135158      try {
     
    142165    }
    143166
     167  ///\e
    144168    virtual const char* what() const {
    145169      const char *mes = 0;
Note: See TracChangeset for help on using the changeset viewer.