Example: Currently, the sell/buy stock functions will return a success if nothing bad happens. Technically, not having enough money is not bad, since an error is not thrown. In that case, we need to throw a custom error and then when the controllers see that error, they should display a different message.
Example: Currently, the sell/buy stock functions will return a success if nothing bad happens. Technically, not having enough money is not bad, since an error is not thrown. In that case, we need to throw a custom error and then when the controllers see that error, they should display a different message.