• Yannick Roehlly's avatar
    Raise meaningful exceptions on database operations · 8cd6338e
    Yannick Roehlly authored
    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.
    8cd6338e
__init__.py 19.4 KB