posted 16 years ago
Hello everyone! I am having some trouble creating a NoSalesException. I am not getting any errors or anything like that, it just is not running properly. When I first run the program it pops up 5 times and then never pops up again. I think the exception should be thrown from calculateSales and handled from the calling method; however I could not get that to work. When I handle this exception, it will print a warning message dialog box that states the name of the salesman and that he has no sales. So here is my Sales code and NoSalesException.
NoSalesException:
Sales: