Click here to Skip to main content
15,887,334 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: What are we doing to our kids? Pin
Dan Sutton17-Feb-23 6:56
Dan Sutton17-Feb-23 6:56 
GeneralRe: What are we doing to our kids? Pin
jschell17-Feb-23 10:34
jschell17-Feb-23 10:34 
GeneralRe: What are we doing to our kids? Pin
Dan Sutton17-Feb-23 16:07
Dan Sutton17-Feb-23 16:07 
GeneralRe: What are we doing to our kids? Pin
Mirko79617-Feb-23 8:46
Mirko79617-Feb-23 8:46 
GeneralRe: What are we doing to our kids? Pin
jschell17-Feb-23 10:43
jschell17-Feb-23 10:43 
GeneralRe: What are we doing to our kids? Pin
Cpichols20-Feb-23 1:26
Cpichols20-Feb-23 1:26 
GeneralThe Exception to the Exception Pin
nepdev16-Feb-23 4:34
nepdev16-Feb-23 4:34 
GeneralRe: The Exception to the Exception Pin
OriginalGriff16-Feb-23 5:05
mveOriginalGriff16-Feb-23 5:05 
Depends what the source of the bad date was: if it's the user, then I'd be processing that at the point where he said "Enter" so lower level code never meets the problem - and I'd be using DateTIme.TryParse or TryParseExact instead anyway so the exception would never occur.

Personally, I handle errors as close to the "source" as feasible - provided I can handle it. If it's an error where it makes sense to handle it, do: your error message is indeed unhelpful, so I'd wrap it as an inner exception with a "The database was not updated because ..." message and throw that to give relevant info to higher code. If "this code" can't handle it, then let a higher level do it - but give them info to help them much as you are.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: The Exception to the Exception Pin
Marc Clifton16-Feb-23 5:36
mvaMarc Clifton16-Feb-23 5:36 
GeneralRe: The Exception to the Exception Pin
PIEBALDconsult16-Feb-23 6:33
mvePIEBALDconsult16-Feb-23 6:33 
GeneralRe: The Exception to the Exception Pin
Peter Kelley 202117-Feb-23 2:06
Peter Kelley 202117-Feb-23 2:06 
GeneralRe: The Exception to the Exception Pin
jschell17-Feb-23 10:02
jschell17-Feb-23 10:02 
GeneralRe: The Exception to the Exception Pin
jmaida16-Feb-23 13:41
jmaida16-Feb-23 13:41 
GeneralRe: The Exception to the Exception Pin
PIEBALDconsult16-Feb-23 6:31
mvePIEBALDconsult16-Feb-23 6:31 
GeneralRe: The Exception to the Exception Pin
Peter Adam16-Feb-23 23:42
professionalPeter Adam16-Feb-23 23:42 
GeneralRe: The Exception to the Exception Pin
jschell16-Feb-23 7:26
jschell16-Feb-23 7:26 
GeneralRe: The Exception to the Exception Pin
Gerry Schmitz16-Feb-23 8:02
mveGerry Schmitz16-Feb-23 8:02 
GeneralRe: The Exception to the Exception Pin
BillWoodruff16-Feb-23 19:43
professionalBillWoodruff16-Feb-23 19:43 
GeneralRe: The Exception to the Exception Pin
maze316-Feb-23 23:28
professionalmaze316-Feb-23 23:28 
GeneralRe: The Exception to the Exception Pin
Davyd McColl17-Feb-23 6:51
Davyd McColl17-Feb-23 6:51 
GeneralRe: The Exception to the Exception Pin
englebart18-Feb-23 4:05
professionalenglebart18-Feb-23 4:05 
GeneralRe: The Exception to the Exception Pin
Cpichols20-Feb-23 1:33
Cpichols20-Feb-23 1:33 
GeneralRe: The Exception to the Exception Pin
atverweij20-Feb-23 2:44
atverweij20-Feb-23 2:44 
GeneralWSO CCC OTD 2023-02-16 Pin
OriginalGriff15-Feb-23 21:40
mveOriginalGriff15-Feb-23 21:40 
GeneralRe: WSO CCC OTD 2023-02-16 Pin
pkfox15-Feb-23 22:34
professionalpkfox15-Feb-23 22:34 

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.