SCJP 6.0 , SBCD (Preparing..),
MSc Enterprise Systems Development, BSc Computer Science
Nicolas Kal wrote:My opinion is that you should eliminate any possible scenario that will cause your code to throw unchecked exceptions (IllegalArgumentException as you said). In my case it is assumed that all values passed to the Data.class are valid.
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
And of course in your BusinessService (or GUI) you are not catching such an IllegalArgumentException, because in your BusinessService (or GUI) you will guarantee correct data.
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
Don't get me started about those stupid light bulbs. |