Click here to Skip to main content
14,457,456 members
   

C#

 
GeneralRe: GetValueOrDefault() Throws Pin
Richard Deeming18-Nov-19 10:04
communityengineerRichard Deeming18-Nov-19 10:04 
GeneralRe: GetValueOrDefault() Throws Pin
Kevin Marois18-Nov-19 10:24
professionalKevin Marois18-Nov-19 10:24 
QuestionDAL Exception Handling Pin
Kevin Marois15-Nov-19 5:33
professionalKevin Marois15-Nov-19 5:33 
AnswerRe: DAL Exception Handling Pin
Pete O'Hanlon15-Nov-19 5:40
communityengineerPete O'Hanlon15-Nov-19 5:40 
GeneralRe: DAL Exception Handling Pin
OriginalGriff15-Nov-19 6:04
communityengineerOriginalGriff15-Nov-19 6:04 
GeneralRe: DAL Exception Handling Pin
Kevin Marois15-Nov-19 7:01
professionalKevin Marois15-Nov-19 7:01 
GeneralRe: DAL Exception Handling Pin
OriginalGriff15-Nov-19 7:19
communityengineerOriginalGriff15-Nov-19 7:19 
GeneralRe: DAL Exception Handling Pin
Pete O'Hanlon18-Nov-19 5:43
communityengineerPete O'Hanlon18-Nov-19 5:43 
Sorry, I'd have to disagree with you on this one. If you catch and log the exception in the DAL, then let this bubble up to be caught and logged again (this time as an inner exception), you're polluting your exception logs. Effectively you are double logging this exception. If the logging engine uses structured logging (and most do nowadays), then navigating to the DAL log and extracting useful information from it is straightforward. More importantly, you avoid a double exception penalty which could be costly in terms of performance.

AnswerRe: DAL Exception Handling Pin
Gerry Schmitz15-Nov-19 6:21
mveGerry Schmitz15-Nov-19 6:21 
GeneralRe: DAL Exception Handling Pin
Kevin Marois15-Nov-19 6:59
professionalKevin Marois15-Nov-19 6:59 
GeneralRe: DAL Exception Handling Pin
Gerry Schmitz16-Nov-19 3:45
mveGerry Schmitz16-Nov-19 3:45 
SuggestionRe: DAL Exception Handling Pin
Richard Deeming15-Nov-19 6:29
communityengineerRichard Deeming15-Nov-19 6:29 
GeneralRe: DAL Exception Handling Pin
Kevin Marois15-Nov-19 6:55
professionalKevin Marois15-Nov-19 6:55 
GeneralRe: DAL Exception Handling Pin
Richard Deeming15-Nov-19 7:43
communityengineerRichard Deeming15-Nov-19 7:43 
QuestionLINQ sort and group dates by month and day, ignore year Pin
Mc_Topaz15-Nov-19 1:38
MemberMc_Topaz15-Nov-19 1:38 
AnswerRe: LINQ sort and group dates by month and day, ignore year Pin
Richard Deeming15-Nov-19 2:28
communityengineerRichard Deeming15-Nov-19 2:28 
GeneralRe: LINQ sort and group dates by month and day, ignore year Pin
Mc_Topaz15-Nov-19 3:38
MemberMc_Topaz15-Nov-19 3:38 
QuestionDispose a Tooltip Pin
ConnerMcLoud15-Nov-19 1:32
MemberConnerMcLoud15-Nov-19 1:32 
AnswerRe: Dispose a Tooltip Pin
OriginalGriff15-Nov-19 3:25
communityengineerOriginalGriff15-Nov-19 3:25 
AnswerRe: Dispose a Tooltip Pin
Gerry Schmitz15-Nov-19 6:41
mveGerry Schmitz15-Nov-19 6:41 
AnswerRe: Dispose a Tooltip Pin
Luc Pattyn15-Nov-19 7:22
sitebuilderLuc Pattyn15-Nov-19 7:22 
QuestionType Overflow... Pin
Bernhard Hiller15-Nov-19 1:02
MemberBernhard Hiller15-Nov-19 1:02 
AnswerRe: Type Overflow... Pin
phil.o15-Nov-19 1:46
mvephil.o15-Nov-19 1:46 
GeneralRe: Type Overflow... Pin
Bernhard Hiller15-Nov-19 1:49
MemberBernhard Hiller15-Nov-19 1:49 
AnswerRe: Type Overflow... Pin
Richard Deeming15-Nov-19 2:20
communityengineerRichard Deeming15-Nov-19 2:20 

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.