由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - 请各位老大分享一下exception的使用经验吧。
相关主题
想破脑壳也不知道为什么finally不执行[合集] Log on to a remote computer
Reference type问题memory usage
synclock questionc#有没有第三方地免费解释器?
Interesting change in vs 2005mono 0.29 released
拷。.net有个重大bug感觉c#真是无聊人发明的
How to stop windows service in OnStart()Ndoc - .Net's javadoc
你们都做server side validation?MSDN 上的PATTERN 资源
Log on to a remote computer[转载] 最近要用VC#.net编成,请教一下
相关话题的讨论汇总
话题: exceptions话题: exception话题: many话题: models话题: management
进入DotNet版参与讨论
1 (共1页)
a********y
发帖数: 20
1
到底要怎样计划和执行呢?
谢谢。
L*******r
发帖数: 1011
2
typically I only use exceptions for rare happened errors.
Althrough MS said using exceptions would not bring too much performance penalty,
I doubt it. Java will have performance penalty when using exceptions especially
for JIT VMs. You can find infromation from IBM.
If the error is really a "wrong opertions", just use exceptions for good code
management. But don't abuse exceptions. I have seen some guy used exceptions
for the situation that would happen > 20% probability. That's really not
excep

【在 a********y 的大作中提到】
: 到底要怎样计划和执行呢?
: 谢谢。

a********y
发帖数: 20
3
Do you plan what exceptions and how many exceptions
before you start coding?
Thx.

【在 L*******r 的大作中提到】
: typically I only use exceptions for rare happened errors.
: Althrough MS said using exceptions would not bring too much performance penalty,
: I doubt it. Java will have performance penalty when using exceptions especially
: for JIT VMs. You can find infromation from IBM.
: If the error is really a "wrong opertions", just use exceptions for good code
: management. But don't abuse exceptions. I have seen some guy used exceptions
: for the situation that would happen > 20% probability. That's really not
: excep

L*******r
发帖数: 1011
4
only plan type, not plan number. hehe.

【在 a********y 的大作中提到】
: Do you plan what exceptions and how many exceptions
: before you start coding?
: Thx.

a********y
发帖数: 20
5
oh. Actually, I mean how many types.

【在 L*******r 的大作中提到】
: only plan type, not plan number. hehe.
L*******r
发帖数: 1011
6
depends on how many function models you have.
I like to classify exceptions from their models.
And I always give a way that when end-user administrator
reports us the error message, we can find the exact palce
of that code.
I also wrote exceptions manual in my formal company. :)

【在 a********y 的大作中提到】
: oh. Actually, I mean how many types.
p***n
发帖数: 635
7
1) MSDN 上有个关于EXCEPTION MANAGEMENT的APPLICATION BLOCK
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/emab-rm.asp
2) Also, an old but good guide on EXP MGMT
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/exceptdotnet.asp
3) A list of references :
http://www.dotnet247.com/247reference/guide/39.aspx
4) 这本书的第二章,有一段对于EXCEPTION,TRACING,LOGGING比较精辟的论述:
碰巧,AW上的SAMPLE CHAPTER就是这一章.
http://www.awprofessional.com/isapi/product_id~%7B7213929D-3C04-4D0D

【在 a********y 的大作中提到】
: 到底要怎样计划和执行呢?
: 谢谢。

a********y
发帖数: 20
8
Thx a lot.【 在 payan (沛岩) 的大作中提到: 】
p***n
发帖数: 635
9
hmm, 这本书的配套源代码终于出来了.
1 (共1页)
进入DotNet版参与讨论
相关主题
[转载] 最近要用VC#.net编成,请教一下拷。.net有个重大bug
请推荐asp.net的书!How to stop windows service in OnStart()
MSDN 上的相关新闻组你们都做server side validation?
How to write Virtual Channel ApplicationLog on to a remote computer
想破脑壳也不知道为什么finally不执行[合集] Log on to a remote computer
Reference type问题memory usage
synclock questionc#有没有第三方地免费解释器?
Interesting change in vs 2005mono 0.29 released
相关话题的讨论汇总
话题: exceptions话题: exception话题: many话题: models话题: management