[UPHPU] class breakage
Ray Hunter
bigdog at venticon.com
Tue Oct 10 10:33:46 MDT 2006
Steve Dibb wrote:
> 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.
i would allow them to keep going, but provide some error messages to the
page instead of the forms. Allowing people to continue is a good thing imho.
-
ray
More information about the UPHPU
mailing list