diff between

  • Thread starter Thread starter Pohihihi
  • Start date Start date
ApplicationException is Microsoft's invention in an attempt to separate
application exceptions from .NET framework exceptions. However, I
usually write my app base exception extending directly from Exception,
and all other exceptions in my app extend that base exception. It seems
no point extending ApplicationException.
 
While they are functionally the same, one of the .Net Exception model
characteristics is that one can differentiate between different causes of
exceptions by their types.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Complex things are made up of
Lots of simple things.
 
Pohihihi,
The initial intent of System.ApplicationException was to "add value by
grouping exceptions declared outside of .NET Framework"

http://blogs.msdn.com/brada/archive/2004/03/25/96251.aspx

However, as the above blog states, ApplicationException was found not to
actually add any value. Plus there are a handful of Framework exceptions
that actually inherit from System.ApplicationException! Which IMHO
invalidates its very reason for being anyway.

The "counter" to ApplicationException is System.SystemException not
System.Exception per se.

When I define my exceptions I normally inherit from System.Exception itself.

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


| What is the diff between
|
| System.ApplicationException
|
| and
|
| System.Exception
|
|
 
Back
Top