#pragma once #include #include #define ThrowDatabase(msg) throw DatabaseException(msg, __FUNCTION__) #define ThrowDatabase_F(msg, ...) throw DatabaseException(StringUtil::Format(msg, __VA_ARGS__), __FUNCTION__) class DatabaseException : public LTCException { public: DatabaseException(const std::string& message, const std::string& function) : LTCException("DatabaseException", message, function) { } };