Click here to Skip to main content
15,888,521 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionUML Software Pin
Brendan Vogt10-Mar-09 21:08
Brendan Vogt10-Mar-09 21:08 
AnswerRe: UML Software Pin
Pete O'Hanlon10-Mar-09 22:27
mvePete O'Hanlon10-Mar-09 22:27 
AnswerRe: UML Software Pin
User 171649210-Mar-09 22:46
professionalUser 171649210-Mar-09 22:46 
QuestionRe: UML Software Pin
Brendan Vogt11-Mar-09 23:44
Brendan Vogt11-Mar-09 23:44 
AnswerRe: UML Software Pin
Pete O'Hanlon12-Mar-09 0:10
mvePete O'Hanlon12-Mar-09 0:10 
AnswerRe: UML Software Pin
User 171649212-Mar-09 0:26
professionalUser 171649212-Mar-09 0:26 
AnswerRe: UML Software Pin
shakhtyor12-Mar-09 10:51
shakhtyor12-Mar-09 10:51 
GeneralCommunicating the Reason for Method Failure Pin
Brady Kelly9-Mar-09 2:58
Brady Kelly9-Mar-09 2:58 
I have a method that could fail for a number of reasons, e.g. an invalid directory, a file not found in that directory, or an entry not found in that file. It's crossed my mind to throw different exceptions for the first two, and return null for the last, but this is not a good practice application of exceptions. My next alternative is to return null for any failure, but this makes unit testing the individual failures difficult. My third option is to return null for any failure, and set an ErrorMessage property on the class. If the method returns null, the caller can read this property and test/report on the error.



GeneralRe: Communicating the Reason for Method Failure Pin
Luc Pattyn9-Mar-09 3:16
sitebuilderLuc Pattyn9-Mar-09 3:16 
GeneralRe: Communicating the Reason for Method Failure Pin
Brady Kelly9-Mar-09 3:18
Brady Kelly9-Mar-09 3:18 
GeneralRe: Communicating the Reason for Method Failure Pin
Luc Pattyn9-Mar-09 3:32
sitebuilderLuc Pattyn9-Mar-09 3:32 
GeneralRe: Communicating the Reason for Method Failure Pin
Mark Churchill9-Mar-09 13:47
Mark Churchill9-Mar-09 13:47 
GeneralRe: Communicating the Reason for Method Failure Pin
led mike10-Mar-09 5:54
led mike10-Mar-09 5:54 
GeneralRe: Communicating the Reason for Method Failure Pin
Brady Kelly10-Mar-09 5:58
Brady Kelly10-Mar-09 5:58 
GeneralA re-introduction to TDD Pin
Brady Kelly9-Mar-09 2:09
Brady Kelly9-Mar-09 2:09 
GeneralHigh Level Design for Installation and Upgrade Application Pin
Brady Kelly6-Mar-09 8:49
Brady Kelly6-Mar-09 8:49 
GeneralRe: High Level Design for Installation and Upgrade Application Pin
Jonathan Davies8-Mar-09 4:11
Jonathan Davies8-Mar-09 4:11 
GeneralRe: High Level Design for Installation and Upgrade Application Pin
Brady Kelly8-Mar-09 4:25
Brady Kelly8-Mar-09 4:25 
GeneralRe: High Level Design for Installation and Upgrade Application Pin
Jonathan Davies8-Mar-09 5:25
Jonathan Davies8-Mar-09 5:25 
GeneralRe: High Level Design for Installation and Upgrade Application Pin
Brady Kelly8-Mar-09 5:47
Brady Kelly8-Mar-09 5:47 
QuestionCache Manager design problem Pin
Steve Holdorf28-Feb-09 9:07
Steve Holdorf28-Feb-09 9:07 
QuestionRe: Cache Manager design problem [modified] Pin
Steve Holdorf28-Feb-09 14:34
Steve Holdorf28-Feb-09 14:34 
AnswerRe: Cache Manager design problem Pin
Steve Holdorf1-Mar-09 9:53
Steve Holdorf1-Mar-09 9:53 
QuestionReverse engineering the vc++ project Pin
hariakuthota19-Feb-09 22:28
hariakuthota19-Feb-09 22:28 
AnswerRe: Reverse engineering the vc++ project Pin
bobbery19-Feb-09 23:12
bobbery19-Feb-09 23:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.