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

C#

 
GeneralRe: Question about constructors of a class Pin
Arun kumar Gautam21-May-13 20:43
Arun kumar Gautam21-May-13 20:43 
AnswerRe: Question about constructors of a class Pin
DaveyM6921-May-13 22:12
professionalDaveyM6921-May-13 22:12 
AnswerRe: Question about constructors of a class Pin
harold aptroot22-May-13 3:49
harold aptroot22-May-13 3:49 
QuestionSome Columns of DataGridView Wont Accept Values Pin
matt_1ca21-May-13 17:51
matt_1ca21-May-13 17:51 
AnswerRe: Some Columns of DataGridView Wont Accept Values Pin
matt_1ca21-May-13 18:30
matt_1ca21-May-13 18:30 
GeneralRe: Some Columns of DataGridView Wont Accept Values Pin
matt_1ca22-May-13 14:57
matt_1ca22-May-13 14:57 
GeneralRe: Some Columns of DataGridView Wont Accept Values Pin
matt_1ca22-May-13 15:11
matt_1ca22-May-13 15:11 
QuestionTo Throw or Not To Throw Pin
Kevin Marois21-May-13 12:39
professionalKevin Marois21-May-13 12:39 
I'm working on an app that has custom exceptions defined. When the DAL wants to communicate that something is wrong, not necessarily an error, then it throws a custom exception. The theory here is that the UI can catch them and know what's wrong.

Examples might be a purchase amount exceeding a credit limit. The custom exception AmountExceedsCreditLimitException is thrown, with the message and amount attached to to it.

Then the UI now knows about this and can deal with it.

Now I know some who say that Exceptions should only be used for true errors.

I'd like to get your opinion.
If it's not broken, fix it until it is

AnswerRe: To Throw or Not To Throw Pin
Garth J Lancaster21-May-13 13:19
professionalGarth J Lancaster21-May-13 13:19 
AnswerRe: To Throw or Not To Throw Pin
SledgeHammer0121-May-13 13:37
SledgeHammer0121-May-13 13:37 
GeneralRe: To Throw or Not To Throw Pin
Kevin Marois21-May-13 13:40
professionalKevin Marois21-May-13 13:40 
GeneralRe: To Throw or Not To Throw Pin
SledgeHammer0121-May-13 14:31
SledgeHammer0121-May-13 14:31 
AnswerRe: To Throw or Not To Throw Pin
SoMad21-May-13 13:55
professionalSoMad21-May-13 13:55 
AnswerRe: To Throw or Not To Throw Pin
PIEBALDconsult21-May-13 14:13
mvePIEBALDconsult21-May-13 14:13 
GeneralRe: To Throw or Not To Throw Pin
Eddy Vluggen21-May-13 22:29
professionalEddy Vluggen21-May-13 22:29 
AnswerRe: To Throw or Not To Throw Pin
Dave Kreskowiak21-May-13 14:29
mveDave Kreskowiak21-May-13 14:29 
GeneralRe: To Throw or Not To Throw Pin
PIEBALDconsult21-May-13 14:52
mvePIEBALDconsult21-May-13 14:52 
GeneralRe: To Throw or Not To Throw Pin
Keith Barrow22-May-13 2:20
professionalKeith Barrow22-May-13 2:20 
GeneralRe: To Throw or Not To Throw Pin
Dave Kreskowiak22-May-13 2:25
mveDave Kreskowiak22-May-13 2:25 
AnswerRe: To Throw or Not To Throw Pin
V.21-May-13 23:38
professionalV.21-May-13 23:38 
GeneralRe: To Throw or Not To Throw Pin
Eddy Vluggen22-May-13 0:30
professionalEddy Vluggen22-May-13 0:30 
GeneralRe: To Throw or Not To Throw Pin
V.22-May-13 0:38
professionalV.22-May-13 0:38 
GeneralRe: To Throw or Not To Throw Pin
Eddy Vluggen22-May-13 6:55
professionalEddy Vluggen22-May-13 6:55 
GeneralRe: To Throw or Not To Throw Pin
jschell22-May-13 8:25
jschell22-May-13 8:25 
AnswerRe: To Throw or Not To Throw Pin
jschell22-May-13 8:47
jschell22-May-13 8:47 

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.