'. '

Talk:APIDesignPatterns:Exceptions

From APIDesign

Revision as of 06:35, 15 September 2008 by 80.128.113.214 (Talk)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Comments on APIDesignPatterns:Exceptions <comments />


Aljoscha Rittner said ...

"On the other hand, Chapter 5 also advices to prefer factory methods over exposing constructors. I tried that few times, but I have a feeling that this feels a bit unnatural and as such I cannot recommend code like: " [...factory sample...]

It's not only unnatural, a static factory hides the real exception point into the stacktrace.

best regards,

 josh.

--Aljoscha Rittner 08:35, 15 September 2008 (CEST)

Personal tools
buy