Design paterns for null arguments 2004-05-28 - By Ben Hill
Back On Fri, 2004-05-28 at 11:08, Laxmish R. Hegde wrote: > I think sub class'ing the java.lang.exception and throwing that > exception should work fine for you. > Yes you can have a factory pattern to get the exception you would like > to throw back to the client.
Well, to be fair, all that would add is a specific exception, not a strategy to return bespoke messages back to the user given a collection of values - some of which could be null.
Cheers,
Ben
---
ben@(protected) www.javacoder.net - Coding, from the source!
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|