Browse Source

[1067] Note about iterator and exception

Michal 'vorner' Vaner 13 years ago
parent
commit
cc004ec0ff
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/lib/datasrc/database.h

+ 3 - 0
src/lib/datasrc/database.h

@@ -114,6 +114,9 @@ public:
          *     otherwise DataSourceError is thrown.
          *     otherwise DataSourceError is thrown.
          * \todo Do we consider databases where it is stored in binary blob
          * \todo Do we consider databases where it is stored in binary blob
          *     format?
          *     format?
+         * \throw DataSourceError if there's database-related error. If the
+         *     exception (or any other in case of derived class) is thrown,
+         *     the iterator can't be safely used any more.
          */
          */
         virtual bool getNext(std::string columns[], size_t column_data) = 0;
         virtual bool getNext(std::string columns[], size_t column_data) = 0;
     };
     };