Changeset c793b28 in confclerk_git
- Timestamp:
- 10/02/17 23:03:50 (5 years ago)
- Branches:
- master
- Children:
- 0c1d3ea
- Parents:
- 4d0db91
- git-author:
- Philipp Spitzer <philipp@…> (10/02/17 22:19:13)
- git-committer:
- Philipp Spitzer <philipp@…> (10/02/17 23:03:50)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/orm/ormrecord.h
r4d0db91 rc793b28 30 30 #include <stdexcept> 31 31 32 class OrmException 32 class OrmException: public std::runtime_error 33 33 { 34 34 public: 35 35 OrmException(const QString& text) : std::runtime_error(text.toStdString()), mText(text) {} 36 virtual ~OrmException() {}36 virtual ~OrmException() throw() {} 37 37 virtual const QString& text() const { return mText; } 38 38 private: … … 44 44 public: 45 45 OrmNoObjectException() : OrmException("SQL query expects one record but found none."){} 46 ~OrmNoObjectException() {}46 ~OrmNoObjectException() throw() {} 47 47 }; 48 48 … … 51 51 public: 52 52 OrmSqlException(const QString& text) : OrmException( QString("Sql error: ") + text ) {} 53 ~OrmSqlException() {}53 ~OrmSqlException() throw() {} 54 54 }; 55 55
Note: See TracChangeset
for help on using the changeset viewer.