Raise meaningful exceptions on database operations
Create two custom exceptions. When one tries to insert something in the database that is already inside, a DatabaseInserError is raised. When one asks for something in the database that is not present, a DatabaseLookupError is raised indicating what was not found.
Showing with 87 additions and 25 deletions