• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Logging and Exception Handling

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
author & internet detective
Posts: 41151
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41151
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41151
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic