Database.create() should throw DatabaseException

Issue #2 resolved
Jesse Dhillon
created an issue

Run the following code twice, and the second iteration will throw CodernityDB.index.IndexException('Already exists') from index.create_index

db = Database('/foo/bar')

If it is an error to create a database which already exists, then perhaps there should be some exception thrown which is more appropriate than IndexException. Also, should indicate that create() throws an exception.

Comments (2)

  1. Log in to comment