Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: settings.settings property is read-only? Pin
Richard MacCutchan23-Aug-13 21:52
mveRichard MacCutchan23-Aug-13 21:52 
QuestionIs try - catch block advisable? Pin
Srinivas Kalabarigi22-Aug-13 23:38
professionalSrinivas Kalabarigi22-Aug-13 23:38 
AnswerRe: Is try - catch block advisable? Pin
Eddy Vluggen23-Aug-13 0:58
professionalEddy Vluggen23-Aug-13 0:58 
GeneralRe: Is try - catch block advisable? Pin
Srinivas Kalabarigi23-Aug-13 1:13
professionalSrinivas Kalabarigi23-Aug-13 1:13 
GeneralRe: Is try - catch block advisable? Pin
Eddy Vluggen23-Aug-13 1:58
professionalEddy Vluggen23-Aug-13 1:58 
GeneralRe: Is try - catch block advisable? Pin
jschell23-Aug-13 13:15
jschell23-Aug-13 13:15 
AnswerRe: Is try - catch block advisable? Pin
SaqibRasheed23-Aug-13 1:48
SaqibRasheed23-Aug-13 1:48 
AnswerRe: Is try - catch block advisable? Pin
Forbiddenx23-Aug-13 2:18
Forbiddenx23-Aug-13 2:18 
I dont pay much attention to practices when it comes to exceptions.. I guess it depends on what you are coding...

However, I have coded both pro app and pro web sites..
And I must say....

The best use of catch exception code for me has always been...

If Website, catch just about all exceptions and store them into a database for review and easy lookup for when users report bugs and problems that may be very hard to reproduce on your own..

In applications, catch exception and present user with interface to report exception to staff..

That has been the extend of my exception code...
=)

GeneralRe: Is try - catch block advisable? Pin
Eddy Vluggen23-Aug-13 2:42
professionalEddy Vluggen23-Aug-13 2:42 
GeneralRe: Is try - catch block advisable? Pin
Forbiddenx23-Aug-13 3:15
Forbiddenx23-Aug-13 3:15 
GeneralRe: Is try - catch block advisable? Pin
Eddy Vluggen23-Aug-13 5:01
professionalEddy Vluggen23-Aug-13 5:01 
GeneralRe: Is try - catch block advisable? Pin
Forbiddenx23-Aug-13 6:37
Forbiddenx23-Aug-13 6:37 
GeneralRe: Is try - catch block advisable? Pin
Eddy Vluggen24-Aug-13 2:49
professionalEddy Vluggen24-Aug-13 2:49 
GeneralRe: Is try - catch block advisable? Pin
PIEBALDconsult23-Aug-13 18:55
mvePIEBALDconsult23-Aug-13 18:55 
GeneralRe: Is try - catch block advisable? Pin
jschell23-Aug-13 13:16
jschell23-Aug-13 13:16 
GeneralRe: Is try - catch block advisable? Pin
PIEBALDconsult23-Aug-13 18:55
mvePIEBALDconsult23-Aug-13 18:55 
AnswerRe: Is try - catch block advisable? Pin
Ennis Ray Lynch, Jr.23-Aug-13 3:13
Ennis Ray Lynch, Jr.23-Aug-13 3:13 
GeneralRe: Is try - catch block advisable? Pin
PIEBALDconsult23-Aug-13 18:56
mvePIEBALDconsult23-Aug-13 18:56 
AnswerRe: Is try - catch block advisable? Pin
jschell23-Aug-13 13:26
jschell23-Aug-13 13:26 
AnswerRe: Is try - catch block advisable? Pin
PIEBALDconsult23-Aug-13 16:20
mvePIEBALDconsult23-Aug-13 16:20 
AnswerRe: Is try - catch block advisable? Pin
Abhinav S23-Aug-13 16:44
Abhinav S23-Aug-13 16:44 
GeneralRe: Is try - catch block advisable? Pin
Eddy Vluggen24-Aug-13 0:55
professionalEddy Vluggen24-Aug-13 0:55 
GeneralRe: Is try - catch block advisable? Pin
OriginalGriff24-Aug-13 1:37
mveOriginalGriff24-Aug-13 1:37 
GeneralRe: Is try - catch block advisable? Pin
Eddy Vluggen24-Aug-13 2:34
professionalEddy Vluggen24-Aug-13 2:34 
GeneralRe: Is try - catch block advisable? Pin
OriginalGriff24-Aug-13 2:40
mveOriginalGriff24-Aug-13 2:40 

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.