- Timestamp:
- 01/21/10 15:12:57 (13 years ago)
- Branches:
- master, qt5
- Children:
- e493054
- Parents:
- 6a807e7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/orm/ormrecord.h
r6a807e7 r9d8946b 12 12 class OrmException 13 13 { 14 }; 15 16 class OrmNoObjectException : OrmException 17 { 18 }; 19 20 class OrmSqlException : OrmException 21 { 22 public: 23 OrmSqlException(const QString& text) : mText(text) {} 24 QString text() const { return mText; } 25 14 public: 15 OrmException(const QString& text) : mText(text) {}; 16 virtual ~OrmException(){}; 17 virtual const QString& text() const { return mText; } 26 18 private: 27 19 QString mText; 20 }; 21 22 class OrmNoObjectException : OrmException 23 { 24 public: 25 OrmNoObjectException() : OrmException("No object exception"){}; 26 ~OrmNoObjectException(){}; 27 }; 28 29 class OrmSqlException : OrmException 30 { 31 public: 32 OrmSqlException(const QString& text) : OrmException( QString("Sql error: ") + text ) {}; 33 ~OrmSqlException(){}; 28 34 }; 29 35
Note: See TracChangeset
for help on using the changeset viewer.