Difference Between Application Exception and System Exception

后端 未结 2 977
刺人心
刺人心 2021-01-04 00:41

I want to know the difference Between System.ApplicationException and System.Exception.

Can anyone explain

2条回答
  •  一生所求
    2021-01-04 01:31

    All exception derives from Exception Base class. Exceptions can be generated programmatically or can be generated by system. Application Exception serves as the base class for all application specific exception classes. It derives from Exception but does not provide any extended functionality. You should derive your custom application exceptions from Application Exception. Application exception are used when we want to define user defined exception. While system exception are all which are defined by .NET

提交回复
热议问题