GeeCON Prague 2014*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Logging and Exception Handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Logging and Exception Handling" Watch "Logging and Exception Handling" New topic
Author

Logging and Exception Handling

Kumar Amit
Ranch Hand

Joined: Aug 13, 2001
Posts: 103
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?


SCJP, SCJD, SCEA
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30586
    
154

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Kumar Amit
Ranch Hand

Joined: Aug 13, 2001
Posts: 103
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

Joined: May 26, 2003
Posts: 30586
    
154

Correct. What happens if the database goes down is likely to not be a business flow.
Kumar Amit
Ranch Hand

Joined: Aug 13, 2001
Posts: 103
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

Joined: May 26, 2003
Posts: 30586
    
154

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.
 
GeeCON Prague 2014
 
subject: Logging and Exception Handling