Skip to main content

Posts

Showing posts with the label Type of Exception

Types of Exceptions in .NET

The exception is the process that occurred during the run time in the software application, it happens when the developer does not manage the code in the right way or something is not handled properly. an exception is certain types and breaks the application. In this blog, I will show a few types of exceptions, which we face in everyday development, in this blog my focus in.Net C#, as per the language the name may be vary based on the syntax but the type of exception should have the same for all languages Exceptions Overview Exceptions have the following properties: to use include exception need to import  System.Exception . always use  try  block around the statements. Once the exception occurs, try  block, the flow of control jumps to the associated exception handler. In C#, the  catch  keyword is used to define an exception handler. If an exception handler is not defined for an exception in the program, it stops executing with an error message. if you do not write any catch handler