Ticket #542: @exceptionAdditionInDatabase.h.patch

File @exceptionAdditionInDatabase.h.patch, 876 bytes (added by laserbled, 14 years ago)

I have added exception for that....but there are lot of @exception still to be added

  • xapian-core/include/xapian/database.h

    diff --git a/xapian-core/include/xapian/database.h b/xapian-core/include/xapian/database.h
    index e6b594c..1a900f6 100644
    a b class XAPIAN_VISIBILITY_DEFAULT Database {  
    194194        PositionIterator positionlist_begin(Xapian::docid did, const std::string &tname) const;
    195195
    196196        /** Corresponding end iterator to positionlist_begin().
     197         *  @exception RangeError if the term specified doesn't index the
     198         *  document specified.
     199         *  @exception DocNotFoundError The document specified
     200         *  could not be found in the database.
     201         *  @exception InvalidArgumentError will be thrown if an invalid
     202         *  argument is supplied, In this case if the document id is Zero.
    197203         */
    198204        PositionIterator positionlist_end(Xapian::docid, const std::string &) const {
    199205            return PositionIterator(NULL);