Logo 
Search:

C# FAQ

Submit Interview FAQ
Home » Interview FAQ » C#RSS Feeds

Can I define my own exceptions?

  Shared By: Angie Bennett    Date: Mar 26    Category: C#    Views: 1172

Answer:

Yes, just derive your exception class from System.Exception.

Note that if you want your exception to cross remoting boundaries you'll need to do some extra work - see www.thinktecture.com/.../CustomExceptions.html for details.

Share: 
 

Didn't find what you were looking for? Find more on Can I define my own exceptions? Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: