[Xapian-tickets] [Xapian] #773: Explicit DatabaseNotFoundError exception

Xapian nobody at xapian.org
Fri Dec 21 19:20:55 GMT 2018

#773: Explicit DatabaseNotFoundError exception
 Reporter:  Kronuz        |             Owner:  olly
     Type:  enhancement   |            Status:  new
 Priority:  normal        |         Milestone:  1.5.0
Component:  Library API   |           Version:
 Severity:  normal        |        Resolution:
 Keywords:  GoodFirstBug  |        Blocked By:
 Blocking:                |  Operating System:  All

Comment (by olly):

 Pretty much.

 Essentially anywhere that throws `DatabaseOpeningError` currently needs
 checking to see if that ought to instead throw the new

 But also, some places that currently catch `DatabaseOpeningError` should
 be updated correspondingly (especially in the testsuite - note there's a
 `TEST_EXCEPTION(...)` macro there as well as explicit `catch`).  The code
 will still work without this change (since `DatabaseNotFoundError` is a
 subclass of `DatabaseOpeningError`) but we want to have test coverage that
 the new exception is thrown when it should be.

Ticket URL: <https://trac.xapian.org/ticket/773#comment:5>
Xapian <https://xapian.org/>

More information about the Xapian-tickets mailing list