I like how it extends Exception which forces you to catch it. It seems like java has this already...maybe NullPointerException? At least that's a RuntimeException. Can you imagine having to catch all of the situations an object might be null? Tell your friend I'm sorry for him :-).

David






From: Jeff Caddel <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [OT] How to tell when a project you are on is in trouble
Date: Wed, 20 Nov 2002 22:32:24 -0700

The "architect" of the project a friend of mine is on just unleashed this beauty into the source tree, thought ya'll might get a kick out of it:

/**
* NullObjectException
*
* Copyright � 2001,2002 ###### Corp. All rights reserved.
* This exception is used if the object must not be null and it is
*
* @author #### #########
*/
public class NullObjectException extends Exception {
// Doesn't have to do anything
}

Note how neatly this disables nested exception handling!!! Pretty nice eh??

----
Jeff Caddel


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to