Add "throw Exception" in business's DAO functions
Closed this issue · 1 comments
alextsil commented
-Check for null object in findById function and throw an appropriate exception.
-Check if business exists before trying to delete or update and throw an appropriate exception.
---Modify the tests in BusinessDaoTest accordingly.
alextsil commented
findById now throws BusinessDoesNotExistException