Changeset 2153:b1fb96088350 in lemon-0.x for lemon/error.h
- Timestamp:
- 07/18/06 17:57:55 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2867
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/error.h
r2151 r2153 236 236 237 237 ///\e 238 class I OError : public RuntimeError {239 public: 240 virtual const char* what() const throw() { 241 return "lemon::I OError";238 class IoError : public RuntimeError { 239 public: 240 virtual const char* what() const throw() { 241 return "lemon::IoError"; 242 242 } 243 243 }; 244 244 245 245 ///\e 246 class DataFormatError : public I OError {246 class DataFormatError : public IoError { 247 247 protected: 248 248 ExceptionMember<std::string> _message; … … 254 254 255 255 DataFormatError(const DataFormatError &dfe) : 256 I OError(dfe), _message(dfe._message), _file(dfe._file),256 IoError(dfe), _message(dfe._message), _file(dfe._file), 257 257 _line(dfe._line) {} 258 258 … … 319 319 320 320 ///\e 321 class FileOpenError : public I OError {321 class FileOpenError : public IoError { 322 322 protected: 323 323 ExceptionMember<std::string> _file; … … 327 327 328 328 FileOpenError(const FileOpenError &foe) : 329 I OError(foe), _file(foe._file) {}329 IoError(foe), _file(foe._file) {} 330 330 331 331 ///\e … … 363 363 }; 364 364 365 class I OParameterError : public IOError {365 class IoParameterError : public IoError { 366 366 protected: 367 367 ExceptionMember<std::string> _message; … … 371 371 public: 372 372 373 I OParameterError(const IOParameterError &ile) :374 I OError(ile), _message(ile._message), _file(ile._file) {}375 376 ///\e 377 explicit I OParameterError(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) 378 378 : _message(the_message) {} 379 379 380 380 ///\e 381 I OParameterError(const char *file_name, const char *the_message)381 IoParameterError(const char *file_name, const char *the_message) 382 382 : _message(the_message), _file(file_name) {} 383 383 … … 417 417 catch (...) {} 418 418 if( _message_holder.valid() ) return _message_holder.get().c_str(); 419 return "lemon:I OParameterError";420 } 421 virtual ~I OParameterError() throw() {}419 return "lemon:IoParameterError"; 420 } 421 virtual ~IoParameterError() throw() {} 422 422 }; 423 423
Note: See TracChangeset
for help on using the changeset viewer.