Members - Reputation: 151
Posted 02 March 2012 - 12:12 PM
I nearly never used Exceptions in my Programs until now (well, it worked fine until now ),
but I wonder, wether this may be (very?) bad coding style and wether I will get problems when my Project meets a certain size...
Basically my question is:
Are Exceptions in Java a "must-have" to simplify debugging and have clean code or are they just to have decent code (and are not that important)?
thx in advance
Crossbones+ - Reputation: 7161
Posted 02 March 2012 - 12:49 PM
That said, you can write programs that do not throw exceptions in own code, but you ever should handle exceptions possibly being thrown by 3rd party code. E.g. libraries that deal with files, networking, or similar stuff are ever good for throwing the one or other exception.