I need to be able to test whether a System.Data.SqlClient.SqlException is due to a network error or not (.NET environment connecting to MS SQL Server). If it is, I can tell the user that there is a problem with his connection, whereas if it is not, it is most likely a bug in my code which is to be treated differently. Obviously, it is crucial not to have false positives (declare somehting a network problem when it is a bug).I need to be able to test whether a System.Data