Dan Rossi wrote:

> hi guys i have been trying to work out the best way to trigger exception
> style error handling within a class and return it ,i am currently storing
> the error code into a session variable, exiting, and doing a header location
> to the previous page where i was submitting from and output the error code
> with the message in an array is this the best way to do this , or is trigger
> error with a set_error_handler on a function within the lass the best way to
> do it ?

Seems as if you complicate things, sounds like it could bring you to messy
code if some things is completed and some things not.

Maybe it's better to keep error checking in the same script, and show
error message or possibly redirect if there is nothing wrong?

Keep It Simple Stupid.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to