Category Archives: dotNET Exception Handling

System.Threading.ThreadAbortException

.NET Exception Handling – System.ArgumentNullException

Making our way through our .NET Exception Handling series, today we’ll take a closer look at the System.ArgumentNullException. Similar to the System.ArgumentException that we covered in another article the System.ArgumentNullException is the result of passing an invalid argument to a method — in this case, passing a null object when… continue reading →

System.Threading.ThreadAbortException

.NET Exception Handling – System.InvalidCastException

Moving along through our .NET Exception Handling series, today we’ll dig into the System.InvalidCastException. Put simply, a System.InvalidCastException is thrown when trying to perform some type of conversion an object to an invalid type. ga In this article we’ll examine everything about the System.InvalidCastException, including where it sits within the… continue reading →

System.Threading.ThreadAbortException

.NET Exceptions – System.NotImplementedException

Making our way through the .NET Exception Handling series, today we’ll dive into the depths of the System.NotImplementedException. Similar to System.ArgumentException and a handful of other exceptions of this type, the System.NotImplementedException is not an error that is accidentally thrown. Instead, a System.NotImplementedException is used when calling a method or… continue reading →

System.Threading.ThreadAbortException

.NET Exception Handling – System.Net.Sockets.SocketException

Making our way through our .NET Exception Handling series, today we’re going to take a look at the System.Net.Sockets.SocketException. Typically, a System.Net.Sockets.SocketException is thrown when an error occurs within a socket, such as a failure to connect to a remote network. In this article we’ll examine the System.Net.Sockets.SocketException in more… continue reading →

System.Threading.ThreadAbortException

.NET Exception Handling – System.StackOverflowException

Today, as we continue through our .NET Exception Handling series, we’ll be taking a closer look at the System.StackOverflowException. As indicated by the name, the System.StackOverflowException is thrown when a stack overflow occurs within .NET execution. Throughout this article we’ll explore the System.StackOverflowException in more detail, including where it sits… continue reading →

System.Threading.ThreadAbortException

.NET Exception Handling – System.OutOfMemoryException

Taking the next glorious step down the shining path of our .NET Exception Handling series, today we’ll be looking over the amazing System.OutOfMemoryException. As the name implies, the System.OutOfMemoryException typically occurs when the common language runtime (CLR) is unable to allocate enough memory that would be necessary to perform the… continue reading →

System.Threading.ThreadAbortException

.NET Exception Handling – System.BadImageFormatException

Today, as we continue along through our .NET Exception Handling series, we’re going to take a look at the System.BadImageFormatException. System.BadImageFormatException has nothing to do with gifs or jpgs, but instead, occurs when a .NET application attempts to load a dynamic link library (.dll) or executable (.exe) that doesn’t match… continue reading →

System.Threading.ThreadAbortException

.NET Exception Handling – System.InvalidOperationException

Moving right along through the magical world of our .NET Exception Handling series, today we’re going to cover the System.InvalidOperationException. The System.InvalidOperationException is a fairly common exception, as it is typically thrown when there’s a failed attempt to invoke a method, caused by something other than invalid arguments passed to… continue reading →

System.Threading.ThreadAbortException

.NET Exception Handling: System.Data.SqlClient.SqlException

As we continue down the beautiful path that winds through our .NET Exception Handling series, today we’ll be examining the System.Data.SqlClient.SqlException. The System.Data.SqlClient.SqlException is typically thrown when an accessed SQL Server returns a warning or error of its own. In this article, we’ll explore where System.Data.SqlClient.SqlException resides within the .NET… continue reading →