| |
|
What are the 10 most common dotnet Exceptions? Question Posted on 06 Apr 2024 Home >> DotNet >> ASP.NET >> What are the 10 most common dotnet Exceptions? |
What are the 10 most common dotnet Exceptions?
Well, all of us knows the proper exception handling of all application are very critical. We have tried to cover top 10 exceptional handling in below list:-
(1)System.NullReferenceException:-Most common exception related to calling a method on a null object refrence.
(2)System.IndexOutOfRangeException:-This error occur whrn you are about to access an array element which is not exist.
(3)System.IO.IOException:-This is used around many file I/O type operations.
(4)System.Net.WebException:-This error will be thrown when any of error perform during HTTP calls.
(5)System.Data.SqlCLient.SqlException:-When we get various types of SQL Server exceptions.
(6)System.StackOverflowException:-This error will occur when method calls recursively, this error will generated.
(7)System.OutOfMemoryException:-When your application/app runs out of memeory.
(8)System.InvalidCastException:-This error will occur when you are trying to convert an object to an incompatible type.
(9)System.InvalidOperationException:-This is one of the common generic exception in a lot of libraries.
(10)System.ObjectDisposedException:- Attempting to utilize an object that has already undergone disposal. | |
|
|
|
|