The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Exception handling rules of thumb

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Marty Andrews

Posts: 190
Nickname: wry
Registered: Dec, 2003

Marty Andrews is an agile coach and developer for Thoughtworks Australia
Exception handling rules of thumb Posted: Feb 8, 2007 3:55 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by Marty Andrews.
Original Post: Exception handling rules of thumb
Feed Title: Ramblings of the Wry Tradesman
Feed URL: http://www.wrytradesman.com/blog/index.rdf
Feed Description: Marty Andrews talks about the day to day issues he faces as an agile coach on large enterprise applications in Australia.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by Marty Andrews
Latest Posts From Ramblings of the Wry Tradesman

Advertisement

  1. Put your try/catch block around the smallest set of code that you can.
  2. Catch the most specific exception that you can.

Interestingly, most applications should have one place in the system that completely violates both of these rules. It's the last line of defence to protect your users from whatever horrible things try to escape from inside your code.

Read: Exception handling rules of thumb

Topic: Steve Jobs talks DRM Previous Topic   Next Topic Topic: On the one hand, on the other...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use