You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Steve Cohen <st...@comcast.net> on 2008/12/29 01:12:18 UTC
throws Exception ?????
I must admit I am surprised to see that many key methods of Velocity
such as Velocity.init() and Velocity.mergeTemplate() have a signature
includes that includes "throws Exception" which is what I would be
tempted to consider a beginner's mistake. Certainly Joshua Bloch in
"Effective Java" indicates his distaste for the practice and it's
something I always try to avoid in my code.
Can someone explain why Velocity does it this way and an effective
strategy for wrapping this ugliness away someplace?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org