Having said that, methods should be kept as short as possible (i.e. not 20,000 lines!), and a big advantage of exceptions is that they allow messy error handling to be removed from the body of the...
Type: Posts; User: dlorde
Having said that, methods should be kept as short as possible (i.e. not 20,000 lines!), and a big advantage of exceptions is that they allow messy error handling to be removed from the body of the...
As KevinWorkman says, the recommended way to deal with input that can't be processed ('exceptional' input) is to catch the exception and display your error message there. That's pretty much what Java...