Closed tutul2010 closed 11 months ago
Tutul,
Thank you for pointing out the missing exception handling.
To keep the code as simple as possible, for teaching purposes, I intentionally left out exception handling, logging, authentication, validation, etc. While I would expect all of these aspects to be present in a real-world production application, they were outside of the scope of the topics I was specifically trying to teach in this course.
So, if it's alright with you, I'll close this open issue -- since I do not plan to implement exception handling in this educational project. However, we'll leave this closed issue with our conversation available here for others who may have the same question or concern.
Thanks!
Matthew
Hi @matthewrenze ,
Thanks for your wonderful PS course and code repo. I am playing around urs code base and found a handle exception which were showing at swagger page, That Exception Msg was not properly handled in sale middleware-application layer code . Testcase (Negative ) Calling API End-points -https://localhost:7001/api/sales/5 Above SaleId=5 was not present at Sales DB table and thrown a calls-stack exception msg at swagger page as response. It should be handle in code and return a friendly Msg as response. Attached Screenshot as below
Thanks again for code.
Regards, Tutul