Changeset 9d8946b for src/orm


Ignore:
Timestamp:
01/21/10 15:12:57 (12 years ago)
Author:
timkoma <timkoma@…>
Branches:
master, qt5
Children:
e493054
Parents:
6a807e7
Message:

update for the search

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/orm/ormrecord.h

    r6a807e7 r9d8946b  
    1212class OrmException
    1313{
    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 
     14public:
     15    OrmException(const QString& text) : mText(text) {};
     16    virtual ~OrmException(){};
     17    virtual const QString& text() const { return mText; }
    2618private:
    2719    QString mText;
     20};
     21
     22class OrmNoObjectException : OrmException
     23{
     24public:
     25    OrmNoObjectException() : OrmException("No object exception"){};
     26    ~OrmNoObjectException(){};
     27};
     28
     29class OrmSqlException : OrmException
     30{
     31public:
     32    OrmSqlException(const QString& text) : OrmException( QString("Sql error: ") + text ) {};
     33    ~OrmSqlException(){};
    2834};
    2935
Note: See TracChangeset for help on using the changeset viewer.