You are viewing a single thread.
View all comments
3 points

M$ Docu sounds like that doesn’t make sense, do you have some more context?

permalink
report
reply
6 points

It is a relic of the past, where Microsoft intended developers to inherit all their custom exceptions from ApplicationException. Shortly after, they changed their mind and advised that custom exceptions should derive from the base Exception class.

Apparently. (Source: https://stackoverflow.com/questions/5685923/what-is-applicationexception-for-in-net)

permalink
report
parent
reply
3 points
*

I should have elaborated, but basically what MD87 replied. During the development of .NET it was decided that every exception caused by programs should inherit from ApplicationException, and all system errors should inherit from SystemException. Unfortunately .NET devs didn’t follow this and now everything should just inherit Exception since it’s easier to check. Interestingly, both SystemException and ApplicationException seem functionally identical to Exception.

permalink
report
parent
reply
1 point

Which actually makes sense. Java logic with exceptions that you cannot catch is a practice no other language has.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 6.9K

    Monthly active users

  • 1.5K

    Posts

  • 34K

    Comments