ShayHav / Workshop

0 stars 0 forks source link

Create Exception Classes #8

Closed shaharlankry closed 2 years ago

shaharlankry commented 2 years ago

change all methods that return default values to indicate an error occurred to throw an exception - create various exception classes: "negative value" - such as amount, price "invalid identifier" - such as shop_id, user_id

instead of returning null, or -1, throw the appropriate exception.

nitay658 commented 2 years ago

take cared by Nitay and Omry