X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/blobdiff_plain/bd11472c0eb5c23fd300136ebb73c4b6c72f454b..080dc7d603d45ba0662aa731418993ddd45b5fe8:/src/orm/ormrecord.h diff --git a/src/orm/ormrecord.h b/src/orm/ormrecord.h index 30f569a..32a4d5e 100644 --- a/src/orm/ormrecord.h +++ b/src/orm/ormrecord.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2010 Ixonos Plc. - * Copyright (C) 2011-2017 Philipp Spitzer, gregor herrmann, Stefan Stahl + * Copyright (C) 2011-2024 Philipp Spitzer, gregor herrmann, Stefan Stahl * * This file is part of ConfClerk. * @@ -29,11 +29,11 @@ #include #include -class OrmException : public std::runtime_error +class OrmException: public std::runtime_error { public: OrmException(const QString& text) : std::runtime_error(text.toStdString()), mText(text) {} - virtual ~OrmException(){} + virtual ~OrmException() throw() {} virtual const QString& text() const { return mText; } private: QString mText; @@ -43,14 +43,14 @@ class OrmNoObjectException : public OrmException { public: OrmNoObjectException() : OrmException("SQL query expects one record but found none."){} - ~OrmNoObjectException(){} + ~OrmNoObjectException() throw() {} }; class OrmSqlException : public OrmException { public: OrmSqlException(const QString& text) : OrmException( QString("Sql error: ") + text ) {} - ~OrmSqlException(){} + ~OrmSqlException() throw() {} }; template