在哪里可以找到C#中发生的所有系统异常的列表? [英] Where can I find list of all the system exceptions occurred in C#?

查看:130
本文介绍了在哪里可以找到C#中发生的所有系统异常的列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在哪里可以找到C#中发生的所有系统异常的列表?



我想清点C#中发生的所有系统异常,以便我有相应的自定义消息。请通过提及任何网站或任何内容来帮助我。

Where can I find list of all the system exceptions occurred in C#?

I want to make an inventory of all the system exceptions occurred in C# so that I have the corresponding custom messages. Please help me out by mentioning any site or anything.

推荐答案

您好,

如果您正在使用Visual Studio,请在调试下菜单,有一个名为Exceptions的菜单项捷径Ctrl + D,E。如果您打开此窗口,您将看到多个异常作为树列表。这些异常在VS中用于调试以捕获特定的异常。



您可以查看此列表并为自己制作一个例外列表,但这将是毫无意义的,因为您不太可能在Systems引用中使用所有代码路径来抛出所有可能的异常。你可以随时捕捉一般异常并查看内部异常消息以获得更多含义全文。



我希望这会有所帮助。



问候

Jegan
Hi,
If you are working on Visual Studio, Under the "Debug" Menu, there is a menu item called "Exceptions" short cut "Ctrl+D,E". if you open this window you will see number of exceptions as a tree list. these exception are used in the VS during debugging to catch a specific exception.

You can look at this list and make a exception list for yourself, however it will be pointless, because it is very unlikely that you will be using all code path in the "Systems" reference to throw all the possible exception. you can always catch the general exception and look the inner exception message for more meaning full text.

I hope this helps.

Regards
Jegan


因为异常类可以为每个特定目的定制,所以没有办法可以完整的C#中的主要异常列表。



有关它们的列表,请打开Visual Studio,然后按Ctrl + Alt + E,然后展开Common语言运行时异常。那将为您提供项目当前引用的列表。
Because exception classes can be custom defined for each specific purpose, there''s no way that there can be a complete master list of exceptions in C#.

For a list of a bunch of them, open Visual Studio, and press Ctrl+Alt+E, and expand "Common Language Runtime Exceptions". That''ll give you a list of the ones currently referenced by your project.


这篇关于在哪里可以找到C#中发生的所有系统异常的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆