6.170 Forum
August 16, 2006, 04:48:23 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the 6.170 Forum.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Exceptions in Module Dependency Diagrams  (Read 335 times)
Advay Mengle
Full Member
***
Posts: 50


View Profile
« on: April 03, 2006, 04:57:56 PM »

Should Exception classes be displayed in a Module Dependency Diagram?
Logged

-- Advay Mengle, '09
C. Scott Ananian (TA)
Administrator
Sr. Member
*****
Posts: 126


View Profile WWW Email
« Reply #1 on: April 21, 2006, 12:42:37 PM »

Generally your own exceptions might be interesting, but system exceptions are probably not.  Remember, the primary purpose of an MDD is to communicate or discover something (usually a thesis related to the design of the system and coupling) -- you should include classes which are relevant to that thesis, and avoid cluttering it otherwise.  For example, it's not very interesting to see in an MDD that every class depends (in some way) on Integer, because I can usually assume that java.lang.Integer is fixed and will not change (thus there is no point to removing or worrying about dependencies on it).  On the other hand, if I were an engineer at Sun contemplating a potential change to java.lang.Integer, its presence in my MDD would be very important.  Same goes for java.lang.Throwable, java.lang.Exception and the same reasoning for inclusion or exclusion applies to your own exception types.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Valid XHTML 1.0! Valid CSS!