|
Error handling will work just fine, that is what trigger_error is used for. Give it a E_USER_* level error to determine what to do with it. So simply use a logical decision on if an error has occurred, and trigger a user level error according to the error level.
|