Exceptions. What are they? Why are they useful? What else can happen at runtime…?. Wouldn’t it be wonderful? Or would it? From website http://www.dribbleglass.com/subpages/strange/exceptions.htm. What are they?.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Wouldn’t it be wonderful?
Or would it?
From website http://www.dribbleglass.com/subpages/strange/exceptions.htm
Exception in thread "AWT-EventQueue-0" java.lang.ArithmeticException: / by zero
What’s all this mean?
Start at the top, looking at the dump’s info!
Would we be better off if Java hadn’t told us?
Generic exception code:
} catch (…)
I wanted three eyeballs, not two!
That button was supposed to say “Exit”, not “Quit”!
Why isn’t the red square moving?
Rule 1 of software development is:Everything the program is supposed to do must be tested or…
It doesn’t work!!!