COIN-OR::LEMON - Graph Library

Changeset 2153:b1fb96088350 in lemon-0.x for lemon/error.h


Ignore:
Timestamp:
07/18/06 17:57:55 (18 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2867
Message:

Better 'Naming Convention' conformance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/error.h

    r2151 r2153  
    236236
    237237  ///\e
    238   class IOError : public RuntimeError {
    239   public:
    240     virtual const char* what() const throw() {
    241       return "lemon::IOError";
     238  class IoError : public RuntimeError {
     239  public:
     240    virtual const char* what() const throw() {
     241      return "lemon::IoError";
    242242    }
    243243  };
    244244
    245245  ///\e
    246   class DataFormatError : public IOError {
     246  class DataFormatError : public IoError {
    247247  protected:
    248248    ExceptionMember<std::string> _message;
     
    254254
    255255    DataFormatError(const DataFormatError &dfe) :
    256       IOError(dfe), _message(dfe._message), _file(dfe._file),
     256      IoError(dfe), _message(dfe._message), _file(dfe._file),
    257257      _line(dfe._line) {}
    258258
     
    319319
    320320  ///\e
    321   class FileOpenError : public IOError {
     321  class FileOpenError : public IoError {
    322322  protected:
    323323    ExceptionMember<std::string> _file;
     
    327327
    328328    FileOpenError(const FileOpenError &foe) :
    329       IOError(foe), _file(foe._file) {}
     329      IoError(foe), _file(foe._file) {}
    330330
    331331    ///\e
     
    363363  };
    364364
    365   class IOParameterError : public IOError {
     365  class IoParameterError : public IoError {
    366366  protected:
    367367    ExceptionMember<std::string> _message;
     
    371371  public:
    372372
    373     IOParameterError(const IOParameterError &ile) :
    374       IOError(ile), _message(ile._message), _file(ile._file) {}
    375 
    376     ///\e
    377     explicit IOParameterError(const char *the_message)
     373    IoParameterError(const IoParameterError &ile) :
     374      IoError(ile), _message(ile._message), _file(ile._file) {}
     375
     376    ///\e
     377    explicit IoParameterError(const char *the_message)
    378378      : _message(the_message) {}
    379379
    380380    ///\e
    381     IOParameterError(const char *file_name, const char *the_message)
     381    IoParameterError(const char *file_name, const char *the_message)
    382382      : _message(the_message), _file(file_name) {}
    383383
     
    417417      catch (...) {}
    418418      if( _message_holder.valid() ) return _message_holder.get().c_str();
    419       return "lemon:IOParameterError";
    420     }
    421     virtual ~IOParameterError() throw() {}
     419      return "lemon:IoParameterError";
     420    }
     421    virtual ~IoParameterError() throw() {}
    422422  };
    423423
Note: See TracChangeset for help on using the changeset viewer.