Tony Morris
Java Q&A (FAQ, Trivia)
Originally posted by Tony Morris:
http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html
Originally posted by Jack Kay:
But I don't see why we should extend Exception, when extending Throwable works just as well.
- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
If you extend Throwable, then your type can't be caught generically without also catching junk like OutOfMemoryError at the same time.
AspectJ, an asepct-oriented extension to Java programming language.<br /><a href="http://www.aspectj.org" target="_blank" rel="nofollow">http://www.aspectj.org</a>
- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |