Qorder/QorderWS

Add "throw Exception" in business's DAO functions

Closed this issue · 1 comments

-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.

findById now throws BusinessDoesNotExistException