Exceptions in Java

at 2008-06-25 in Further reading by friebe (0 comments)

Found this nice article on exceptions in Java - from a historic overview of Oak, on checked and unchecked exceptions, and asynchronous exceptions it explains nicely (and with code examples) what the Java exception mechanism is about. What I like most are the best practices section, which applies not only to Java:

  • Don't Write Own Exceptions
  • Write Useful Exceptions
  • Throw exceptions early
  • Catch exceptions late
  • Document exceptions
  • Unit Test Exceptions

http://www.javaspecialists.eu/archive/Issue162.html



Subscribe

You can subscribe to the XP framework's news by using RSS syndication.


Categories

News
General
PHP5
Announcements
RFCs
Further reading
Examples
Editorial
EASC
Experiments
Unittests
Databases
5.8-SERIES
Unicode
Language
5.9-SERIES

Related

Find related articles by a search for «Exceptions».