|
Wrapping would be the logical choice. However in this case the IOException being thrown does not support wrapping. A possible solution is to throw a subclass of IOException with a constructor that takes a Throwable arguemnt.
I think it's not that messy. Good idea. What about creating our own exceptions which extends IOException and wrap throws exceptions?
We will fix it in MINA 0.9.1.
Trustin Lee made changes - 23/Jan/06 01:55 PM
Trustin Lee made changes - 24/Jan/06 12:39 PM
Emmanuel Lecharny made changes - 26/May/09 12:47 AM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There might be a philosophy behind using fillInStackTrace() instead of wrapping? I usually prefer wrapping since then I won't miss out on any info that could be useful. Sometimes it can become very messy. In this case, however, I think it will be ok.