Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
GeneralRe: Removing values in a dictionary Pin
David Skelly4-Jan-10 6:17
David Skelly4-Jan-10 6:17 
GeneralRe: Removing values in a dictionary Pin
Paul Harsent4-Jan-10 22:21
Paul Harsent4-Jan-10 22:21 
GeneralRe: Removing values in a dictionary Pin
Ben Fair4-Jan-10 6:36
Ben Fair4-Jan-10 6:36 
QuestionIs there a way to get a list of all exceptions that can be thrown by a program.... Pin
edaindia4-Jan-10 4:40
edaindia4-Jan-10 4:40 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
JasonLee074-Jan-10 4:50
JasonLee074-Jan-10 4:50 
GeneralRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
edaindia4-Jan-10 6:17
edaindia4-Jan-10 6:17 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
sanforjackass4-Jan-10 4:53
sanforjackass4-Jan-10 4:53 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
Eddy Vluggen4-Jan-10 5:14
professionalEddy Vluggen4-Jan-10 5:14 
edaindia wrote:
Is there a way to get a list of all possible exceptions that can be thrown by the application and the line number where it can be thrown


Not that I know of. Well, that's a bit of a lie; you could loop through all the assemblies that are loaded, and list those classes that inherit from Exception.

The programmers should already be handling the errors that they can expect locally with a try-catch block, as has been noted a few times. The exceptions that remain should be handled in the "global exception handler". There's an event called ThreadException[^] that gets raised whenever there's some exception that didn't get handled by the try-catch blocks.

If you don't handle those, you'll get an ugly exception-screen. Now, you want a list of all the exceptions that can occur there? Well, everything that's derived from Exception - hence the suggestion to just log "everything" that triggers the ThreadException event.

Good luck Smile | :)

I are Troll Suspicious | :suss:

GeneralRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
edaindia4-Jan-10 6:34
edaindia4-Jan-10 6:34 
GeneralRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
Eddy Vluggen4-Jan-10 11:59
professionalEddy Vluggen4-Jan-10 11:59 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... PinPopular
Luc Pattyn4-Jan-10 5:14
sitebuilderLuc Pattyn4-Jan-10 5:14 
GeneralRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
#realJSOP4-Jan-10 5:24
professional#realJSOP4-Jan-10 5:24 
GeneralRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
Mycroft Holmes4-Jan-10 13:29
professionalMycroft Holmes4-Jan-10 13:29 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
#realJSOP4-Jan-10 5:37
professional#realJSOP4-Jan-10 5:37 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
PIEBALDconsult4-Jan-10 13:55
mvePIEBALDconsult4-Jan-10 13:55 
QuestionStreamreader, Stringbuilder, and Stream or Stringwriter Pin
JasonLee074-Jan-10 4:30
JasonLee074-Jan-10 4:30 
AnswerRe: Streamreader, Stringbuilder, and Stream or Stringwriter Pin
Dimitri Witkowski4-Jan-10 4:58
Dimitri Witkowski4-Jan-10 4:58 
GeneralRe: Streamreader, Stringbuilder, and Stream or Stringwriter Pin
JasonLee074-Jan-10 5:28
JasonLee074-Jan-10 5:28 
GeneralRe: Streamreader, Stringbuilder, and Stream or Stringwriter Pin
Dimitri Witkowski4-Jan-10 5:53
Dimitri Witkowski4-Jan-10 5:53 
QuestionWorking with the animation codes in C# Pin
anishshrestha4-Jan-10 3:15
anishshrestha4-Jan-10 3:15 
AnswerRe: Working with the animation codes in C# Pin
Not Active4-Jan-10 3:48
mentorNot Active4-Jan-10 3:48 
QuestionGMap.NET.dll is not working Pin
vishnukamath4-Jan-10 2:55
vishnukamath4-Jan-10 2:55 
AnswerRe: GMap.NET.dll is not working Pin
#realJSOP4-Jan-10 3:17
professional#realJSOP4-Jan-10 3:17 
GeneralRe: GMap.NET.dll is not working Pin
radioman.lt4-Jan-10 10:25
radioman.lt4-Jan-10 10:25 
GeneralRe: GMap.NET.dll is not working Pin
#realJSOP4-Jan-10 10:53
professional#realJSOP4-Jan-10 10:53 

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.