SoFunction
Updated on 2025-03-06

.net Some exceptions that cannot catch

.net Some exceptions that cannot catch

Updated: April 15, 2013 10:51:56 Author:
.net Some exceptions that cannot be caught, friends who need it can refer to it
(Generally speaking, this is not really not enough stack, but your code has wireless recursion). If you use throw new *Exception, you can still catch it.
(It seems that only box newarr  newobj will throw this exception)
3. Non-CLS exceptions (usually from local code, these exceptions are not inherited from)
Default behavior in .net framework 4.0 does not catch non-CLS exceptions
In .net framework 2.0, non-CLS exceptions will be wrapped as such (can catch)
My level is limited. I should have missed 2 or 3 kinds of abnormalities...
  • catch
  • abnormal

Related Articles

  • Solution to delete file directories or files in C#

    This article provides a detailed analysis and introduction to the solution to how to delete file directories or files in C#. Please refer to it if you need it.
    2013-05-05
  • C# implements the extraction of multimedia files inserted in Word (video, audio)

    In Word, files can be inserted into documents through OLE object embedding, including Word, excel, PDF, PPT, pictures, macro files, file packages, etc. This article will use C# to extract these multimedia files inserted into Word files. Those who are interested can learn about it.
    2022-02-02
  • C# basic knowledge series eight const and readonly keywords detailed introduction

    This article mainly introduces the const and readonly keywords in C#. Friends who need it can refer to it.
    2014-01-01
  • How to generate thumbnails in c#

    How to generate thumbnails in c#, friends who need it can refer to it
    2013-04-04
  • Two ways to achieve the failure of the close button in winform

    This article mainly introduces two methods for Winform to achieve the failure of the closing button. It analyzes the principle of WinForm to achieve the failure of the closing button and the related skills involved. Friends who need it can refer to it.
    2015-09-09
  • Displays asynchronous downloaded pictures in winform

    This article mainly introduces the use of WebClient to download pictures asynchronously and display them on GridView. Friends who need it can refer to it.
    2016-05-05
  • Implementing Process Manager with C#

    This article mainly introduces in detail how to use C# to implement your own process manager. The sample code in the article is explained in detail, which is helpful for us to learn C#. Interested friends can learn about it.
    2022-12-12
  • C# print barcodes through the ZPL command of the tag software Bartender

    This article introduces C# to print barcodes through the ZPL command of the tag software Bartender, which has certain reference and learning value for everyone's study or work. Friends who need it, please learn with the editor below.
    2022-01-01
  • Lock, Monitor, Mutex study notes in C#

    This article mainly introduces the lock, monitor, and Mutex learning notes in C#. This article explains some knowledge about thread synchronization. Friends who need it can refer to it.
    2015-01-01
  • C# delete strings by specified number from front or back

    This article introduces the method of C# to delete strings by a specified number from the front or back. The article introduces the example code in detail. It has certain reference value for everyone's study or work. Friends who need it can refer to it.
    2022-07-07

Latest Comments