问题描述
大家好,
我喜欢Java提供的检查异常。不,我不想在那上面开始一个
线程,但是问,如果有人知道这个工具的话。它可能是独立的,但可插入MSVS会减轻它的使用,我想。
非常感谢提前和最好的问候
Franz GEIGER
Hi everybody,
I like checked exceptions as provided by Java. No, I don''t want to start a
thread on that, but ask, if anyone knows of a tool for that. It may be
stand-alone, but being plugable into MSVS would ease its use, I guess.
Many thanks in advance and best regards
Franz GEIGER
推荐答案
已检查的异常方案是大多数异常都算为
的方案
已经检查过,并且任何可能抛出这些异常的方法(包括通过调用其他可能抛出它们的方法的
)都必须声明它可能会抛出哪些
检查的异常。
在.NET中没有相应的东西 - 我来回砰砰地敲打
,不管它是不是一个好主意。它(.NET)感觉就像在没有
安全带的情况下驾驶 - 感觉更自由,但也更危险。
-
Jon Skeet - < sk *** @ pobox.com>
如果回复小组,请不要给我发邮件
The checked exception scheme is one where most exceptions count as
checked, and any method which may throw those exception (including by
calling other methods which may throw them) has to declare which
checked exceptions it might throw.
There''s no equivalent in .NET - I ping-pong back and forth as to
whether or not it''s a good idea. It (.NET) feels like driving without a
seatbelt - it feels more free, but more dangerous too.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
这篇关于[检查异常]那里有任何工具吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!