Caught exception is null itself !

后端 未结 5 1187

I have an ASP.NET applications. Everything was fine, but recently I get exceptions that are null themselves:

try
{
    // do something
}
catch (Exception ex)         


        
5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-10 10:44

    That cannot happen.

    If you throw null, you'll get a NullReferenceException from the throw; the exception in the catch block can never be null.

    You have something else that's null.

提交回复
热议问题