- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Difference between system level exception and Application level exception.
As we know that exception is something that refers to the interruption in the flow of program or application. This unwanted event is known as Exception and is generally gives the indication regarding something wrong within the code. Basically particularly in language C# an exception can be a System or an Application Level exception. So on the basis
|Sr. No.||Key||System level exception||Application level exception|
|1||Derivation||System exceptions are derived from the base class System.SystemException which in itself is a derived class of SystemException.||On other hand Application-level exceptions are derived from the base class System.ApplicationException which is again a derived class of SystemException|
|2||Occurrence||In general System exceptions occurred whenever some non-recoverable or fatal error is encountered, like a database crash, bound errors etc.||While in case of Application level exceptions some error which is recoverable is encountered, for instance, the wrong type of input data, arithmetic exceptions etc.|
|3||Handling||As error in case of system level exception is fatal so there is no such handing for these type of exceptions or method to prevent them.||On other hand as application level exceptions are generally handled at the code level using try-catch blocks. If the code does not have a try and catch block for the occurred exception then it propagates to the page level where the Page_Error routine can be used to handle the exception|
|4||Customization||Exception customization is not supported in case of System level exception.||On other hand we can define and declare the custom application level exceptions.|
|5||Generation||As mentioned in above points system level exceptions are thrown by the .NET Common Language Runtime and used in almost all .Net applications.||On other hand application level exceptions are thrown when a recoverable error has occurred, such as an invalid input argument values to a business method. It will alert the client of application specific or business logic issues.|
- What is the difference between application level gateway and hardware level gateway in information security?
- Difference Between High-Level Language and Low-Level Language
- Difference Between First level cache and Second level cache in Hibernate
- Difference between Object level lock and Class level lock in Java
- Difference between Exception and Error in Java
- Difference Between Error and Exception in Java
- Difference Between Checked and Unchecked Exception in Java
- Difference between System software and Application software.
- Difference between sums of odd level and even level nodes of a Binary Tree in Java
- User-level threads and Kernel-level threads
- Differentiate between exception and error in PHP
- What is the difference between 'except Exception as e' and 'except Exception, e' in Python?
- What is an Application-level Firewalls in information security?
- Handling higher level Boolean values in SAP system