Logo 
Search:

C# FAQ

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

What types of object can I throw as exceptions?

  Shared By: Topaz Ramirez    Date: Dec 14    Category: C#    Views: 675

Answer:

Only instances of the System.Exception classes, or classes derived from System.Exception. This is in sharp contrast with C++ where instances of almost any type can be thrown.

Share: 
 

Didn't find what you were looking for? Find more on What types of object can I throw as 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: