[UPHPU] class breakage

Steve Dibb steve at wonkabar.org
Tue Oct 10 09:41:41 MDT 2006


I'm working on writing a new class, and a situation has come up which 
for some reason I've never really had to think about for.

Some of the functions must work correctly with passed in parameters or I 
need to slap the developer on the hand.  What's the best approach for 
this?  I don't want to call 'die' specifically, but I do want to call 
trigger_error().

The question is, which error should I use?  E_USER_WARNING on a default 
install would let them keep going, though the rest of the functions they 
call on the class would die as well.  E_USER_ERROR would throw a fatal 
error and stop them in their tracks.

The class is just for displaying HTML forms, btw, so nothing too serious.

Steve


More information about the UPHPU mailing list