Changeset bd11472
- Timestamp:
- 08/27/17 22:57:06 (5 years ago)
- Branches:
- master, qt5
- Children:
- 5def683
- Parents:
- 860fc82
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/orm/ormrecord.h
r860fc82 rbd11472 28 28 #include <QDateTime> 29 29 #include <QDebug> 30 31 class OrmException 32 { 33 public: 34 OrmException(const QString& text) : mText(text) {} 30 #include <stdexcept> 31 32 class OrmException : public std::runtime_error 33 { 34 public: 35 OrmException(const QString& text) : std::runtime_error(text.toStdString()), mText(text) {} 35 36 virtual ~OrmException(){} 36 37 virtual const QString& text() const { return mText; } … … 42 43 { 43 44 public: 44 OrmNoObjectException() : OrmException(" No object exception"){}45 OrmNoObjectException() : OrmException("SQL query expects one record but found none."){} 45 46 ~OrmNoObjectException(){} 46 47 };
Note: See TracChangeset
for help on using the changeset viewer.