Exit Application - Please help
843785Nov 24 2008 — edited Nov 24 2008Hi all,
I need some advice...
I am creating a class with the main method. Depending on various conditions, I need to throw and check exceptions. And, once caught, if this exception can not be handled, I want to quit the application.
My query is, what is best way to exit? Simple System.exit() at every place I need to stop?
Or shall I put lots of if-else statement (This seeme to be too much work considering my code not too small and got lots of methods.
Thanks,
Edit: Application is not multi-threaded.
Edited by: Maverick22 on Nov 24, 2008 4:39 PM