Where are custom exceptions derived from?

Questions by oclaros1   answers by oclaros1

Showing Answers 1 - 8 of 8 Answers

roc

  • Jul 31st, 2006
 

System.Exception class...MyException : System.Exception

FrankBirch

  • Sep 23rd, 2006
 

SystemException and ApplicationException are both derrived from Exception.SystemException is the predefined base class for exceptions that originate from theSystem namespace.ApplicationException is the class intended as a base for any application specificexceptions that it is decided, need to be defined.If you want to define your own "exceptions" for your own specific applicationthen it is considered good practice to derrive your own "exception" class fromApplicationExceptionpublic class CustomException : ApplicationException ....

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions