Click here to Skip to main content
15,901,373 members
Home / Discussions / C#
   

C#

 
GeneralRe: Parse Stream by Pattern Pin
OriginalGriff27-Feb-15 2:43
mveOriginalGriff27-Feb-15 2:43 
JokeRe: Parse Stream by Pattern Pin
Richard MacCutchan27-Feb-15 2:52
mveRichard MacCutchan27-Feb-15 2:52 
GeneralRe: Parse Stream by Pattern Pin
OriginalGriff27-Feb-15 4:20
mveOriginalGriff27-Feb-15 4:20 
AnswerRe: Parse Stream by Pattern Pin
jschell27-Feb-15 10:15
jschell27-Feb-15 10:15 
QuestionWhat is the best practice for exception management and error handling c# Pin
Tridip Bhattacharjee26-Feb-15 22:08
professionalTridip Bhattacharjee26-Feb-15 22:08 
AnswerRe: What is the best practice for exception management and error handling c# Pin
Richard MacCutchan26-Feb-15 22:26
mveRichard MacCutchan26-Feb-15 22:26 
AnswerRe: What is the best practice for exception management and error handling c# Pin
GuyThiebaut27-Feb-15 3:44
professionalGuyThiebaut27-Feb-15 3:44 
AnswerRe: What is the best practice for exception management and error handling c# Pin
jschell27-Feb-15 10:12
jschell27-Feb-15 10:12 
Tridip Bhattacharjee wrote:
what is the best industry standard for exception management and error handling technique?


It depends on the situation.

An exception is supposed to represent an exceptional condition within the API that is being used. The caller is then responsible for determining what that exception means - to the caller.

Thus the caller can catch it and do something or not catch it all.

That is a general answer but it is further modified by what the caller is supposed to be doing. For example it is inappropriate to allow a SQL syntax error to bubble up to a UI to leave the consumer user to deal with it. But on the other hand one must tell the user that what they were trying to do didn't work. That means somewhere in the middle something must catch that exception, do something with it, and in some way relay a different error message to the user.

A common way of dealing with exceptions is to use a logging api and log it. Like everything that requires moderation and thought as well since one should probably also log other, non-exceptional information and also not log every exception because some are in fact expected (thus generally pointless to log.)
AnswerRe: What is the best practice for exception management and error handling c# Pin
HKHerron3-Mar-15 6:30
professionalHKHerron3-Mar-15 6:30 
Questionwhy memory is increasing in just a for loop? Pin
Le@rner26-Feb-15 19:42
Le@rner26-Feb-15 19:42 
AnswerRe: why memory is increasing in just a for loop? Pin
Pete O'Hanlon26-Feb-15 20:20
mvePete O'Hanlon26-Feb-15 20:20 
AnswerRe: why memory is increasing in just a for loop? Pin
OriginalGriff26-Feb-15 20:23
mveOriginalGriff26-Feb-15 20:23 
GeneralRe: why memory is increasing in just a for loop? Pin
Le@rner26-Feb-15 21:16
Le@rner26-Feb-15 21:16 
GeneralRe: why memory is increasing in just a for loop? Pin
OriginalGriff26-Feb-15 21:21
mveOriginalGriff26-Feb-15 21:21 
GeneralRe: why memory is increasing in just a for loop? Pin
Pete O'Hanlon26-Feb-15 22:24
mvePete O'Hanlon26-Feb-15 22:24 
GeneralRe: why memory is increasing in just a for loop? Pin
Le@rner27-Feb-15 0:22
Le@rner27-Feb-15 0:22 
GeneralRe: why memory is increasing in just a for loop? Pin
Pete O'Hanlon27-Feb-15 1:45
mvePete O'Hanlon27-Feb-15 1:45 
GeneralRe: why memory is increasing in just a for loop? Pin
F-ES Sitecore27-Feb-15 2:38
professionalF-ES Sitecore27-Feb-15 2:38 
Questionhow to continuously write text to a label in C# Pin
Member 1068390226-Feb-15 6:33
Member 1068390226-Feb-15 6:33 
AnswerRe: how to continuously write text to a label in C# Pin
manchanx26-Feb-15 7:52
professionalmanchanx26-Feb-15 7:52 
GeneralRe: how to continuously write text to a label in C# Pin
Member 1068390226-Feb-15 9:26
Member 1068390226-Feb-15 9:26 
AnswerRe: how to continuously write text to a label in C# Pin
HKHerron26-Feb-15 9:38
professionalHKHerron26-Feb-15 9:38 
GeneralRe: how to continuously write text to a label in C# Pin
Member 1068390226-Feb-15 10:07
Member 1068390226-Feb-15 10:07 
GeneralRe: how to continuously write text to a label in C# Pin
HKHerron26-Feb-15 10:20
professionalHKHerron26-Feb-15 10:20 
GeneralRe: how to continuously write text to a label in C# Pin
Member 1068390226-Feb-15 10:46
Member 1068390226-Feb-15 10:46 

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.