Robert

67%
Flag icon
A special form of exception translation called exception chaining is appropriate in cases where the lower-level exception might be helpful to someone debugging the problem that caused the higher-level exception.
Robert
Rote chaining is really only useful for debugging (viz., logging). Too often the chain actually gets long, and you may not know how far in the chain to find something (rather, you shouldn't know about what the chain looks like beyond the first link). Expose causes through specific methods
Effective Java: A Programming Language Guide (Java Series)
Rate this book
Clear rating
Open Preview