Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Logging and Exception Handling

 
Kumar Amit
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we need to explicitly show and explain how SuD manages logging and exception handling? Chapter 9 of cade's book just displays a package in the class diagram with some text on it. Is this sufficient?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is fine. For logging, I didn't mention it at all. For exception handling, I only mentioned issues with business meaning. And even then, I didn't put them in the sequence diagram unless they were a common business flow.
 
Kumar Amit
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:That is fine. For logging, I didn't mention it at all. For exception handling, I only mentioned issues with business meaning. And even then, I didn't put them in the sequence diagram unless they were a common business flow.

Thanks Jeanne. So this means we need to show business exceptions in class and sequence diagrams if they are a part common business flow
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct. What happens if the database goes down is likely to not be a business flow.
 
Kumar Amit
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IF the external system is down and the request times out OR may be returns some other exception, should it be converted into a business exception and returned to web tier?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the real world, absolutely. In this design we aren't going document everything that might happen. I didn't include much exception handling in my submission.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic