What is the difference between System.ApplicationException class and System.SystemException class?
What is the difference between System.ApplicationException class and System.SystemException class?
The main differences between System.ApplicationException and System.SystemException in C# are:
Derivation: System.SystemException is a base class for all exceptions generated by the .NET runtime, while System.ApplicationException is a base class for exceptions generated by application code.
Occurrence: System.SystemException is thrown when a non-recoverable, fatal error occurs, such as a database crash or index out-of-bounds error. System.ApplicationException is thrown when a recoverable error occurs, such as invalid input data or an arithmetic exception.
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.