Click here to Skip to main content
15,921,276 members
Home / Discussions / C#
   

C#

 
AnswerRe: Capturing Minimized Screen Contents Pin
Luc Pattyn8-Nov-07 10:52
sitebuilderLuc Pattyn8-Nov-07 10:52 
QuestionButton Hover text Pin
j_sen8-Nov-07 8:25
j_sen8-Nov-07 8:25 
AnswerRe: Button Hover text Pin
Ennis Ray Lynch, Jr.8-Nov-07 8:41
Ennis Ray Lynch, Jr.8-Nov-07 8:41 
GeneralRe: Button Hover text Pin
j_sen8-Nov-07 8:46
j_sen8-Nov-07 8:46 
AnswerRe: Button Hover text Pin
Luc Pattyn8-Nov-07 8:47
sitebuilderLuc Pattyn8-Nov-07 8:47 
Question(WPF) Events for Tools3D Pin
wolfshad38-Nov-07 7:28
wolfshad38-Nov-07 7:28 
QuestionHow to embed Excel spreadsheet in Windows forms ... Pin
kaminem8-Nov-07 7:27
kaminem8-Nov-07 7:27 
QuestionExceptions Pin
Jim Warburton8-Nov-07 6:55
Jim Warburton8-Nov-07 6:55 
I have defined a user Exception class. The exception will be thrown in

public int GetNextInt()<br />
{<br />
     return Int32.Parse(GetNextToken());<br />
}<br />


GetNextToken() reads a file stream, pulling characters until a predefined delimiters are met (space, end of line, etc) returning the string. I can not change anything in GetNextToken.

If GetNextToken does not return an int value I would like to throw my user defined exception. I have been unable to do so. As soon as as Int32.Parse() finds the input string is not an int it throws an exception.

Is there a way I can throw my user defined exception or use the data field in the predefined exception to add information.

Thanks

this thing looks like it was written by an epileptic ferret
Dave Kreskowiak

AnswerRe: Exceptions Pin
Giorgi Dalakishvili8-Nov-07 7:09
mentorGiorgi Dalakishvili8-Nov-07 7:09 
AnswerRe: Exceptions Pin
Judah Gabriel Himango8-Nov-07 7:09
sponsorJudah Gabriel Himango8-Nov-07 7:09 
AnswerRe: Exceptions Pin
codemunch8-Nov-07 7:12
codemunch8-Nov-07 7:12 
GeneralRe: Exceptions Pin
Anthony Mushrow8-Nov-07 7:58
professionalAnthony Mushrow8-Nov-07 7:58 
GeneralRe: Exceptions Pin
codemunch8-Nov-07 8:33
codemunch8-Nov-07 8:33 
AnswerRe: Exceptions Pin
Jim Warburton8-Nov-07 7:15
Jim Warburton8-Nov-07 7:15 
AnswerRe: Exceptions Pin
PIEBALDconsult8-Nov-07 15:33
mvePIEBALDconsult8-Nov-07 15:33 
QuestionHow to get a window's icon, WM_GETICON indeed. Pin
Anthony Mushrow8-Nov-07 6:48
professionalAnthony Mushrow8-Nov-07 6:48 
AnswerRe: How to get a window's icon, WM_GETICON indeed. Pin
Giorgi Dalakishvili8-Nov-07 7:00
mentorGiorgi Dalakishvili8-Nov-07 7:00 
GeneralRe: How to get a window's icon, WM_GETICON indeed. Pin
Anthony Mushrow8-Nov-07 7:44
professionalAnthony Mushrow8-Nov-07 7:44 
GeneralRe: How to get a window's icon, WM_GETICON indeed. Pin
Giorgi Dalakishvili8-Nov-07 8:08
mentorGiorgi Dalakishvili8-Nov-07 8:08 
QuestionFilter Graphs Pin
GrizzlyDoug8-Nov-07 6:19
GrizzlyDoug8-Nov-07 6:19 
AnswerRe: Filter Graphs Pin
Rich Insley8-Nov-07 9:59
Rich Insley8-Nov-07 9:59 
QuestionAttributes giving problem Pin
humayunlalzad8-Nov-07 5:57
humayunlalzad8-Nov-07 5:57 
AnswerRe: Attributes giving problem Pin
J4amieC8-Nov-07 6:18
J4amieC8-Nov-07 6:18 
AnswerRe: Attributes giving problem Pin
Pete O'Hanlon8-Nov-07 9:11
mvePete O'Hanlon8-Nov-07 9:11 
AnswerRe: Attributes giving problem [modified] Pin
PIEBALDconsult8-Nov-07 15:37
mvePIEBALDconsult8-Nov-07 15:37 

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.