Results 1 to 3 of 3

Thread: What is the difference between System exceptions and Application exceptions?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2010
    Posts
    8

    What is the difference between System exceptions and Application exceptions?

    .NET INTERVIEW QUESTIONS - What is the difference between System exceptions and Application exceptions?...
    < advertising links removed by moderator >

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: What is the difference between System exceptions and Application exceptions?

    It would be a little more logical to post .NET questions in one of the .NET forums rather than the COM & ActiveX forum, which is specifically not .NET.

    You could say that system exceptions are those raised by the system and application exceptions are those raised by the application but there's a more specific meaning in .NET.

    The Exception class is the base class for all exceptions and the SystemException and ApplicationException classes both inherit it. Neither provides any extra functionality, but are rather just supposed to act as base classes. All exceptions defined in the .NET Framework are derived from SystemException and the intent was that everyone else would derive their exceptions from ApplicationException.

    It was decided that this didn't actually serve a useful purpose because, if an existing exception class provided functionality that an application developer needs, they will use that directly or as a base class rather than duplicating functionality by inheriting ApplicationException. It is now recommended to inherit Exception directly if you aren't inheriting some other derived exception class and ApplicationException is basically ignored.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: What is the difference between System exceptions and Application exceptions?

    Moved From .Com/ActiveX

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width