Skip to content

Uncaught exception handlers

George George

Asked Apr 26, 2008, 6:53 AM EDT2 answers
Share
LinkedInX

Hello everyone,


I am new to how to catch uncaught exception. From some self-learning, I think we should use, event handler for AppDomain.CurrentDomain.UnhandledException other than Application.ThreadException if we are writing console or Windows service, right?

Application.ThreadException is for Windows Form application, not console and Windows Service application?


thanks in advance,
George

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    0
    you can create your own customized exception by inheriting it from the Application exception class you can throw it using the code throw new keyword to handle exceptions in a very specefic situations
    0
  • 0

    Sorry, maybe I have not made myself understood. My question is how to be notified of uncaught exception?

     

    regards,

    George

    0