Vali,
You don't need to use ON ERROR at all if you have an Error method. If any method of the object encounters an error, the object's Error event is triggered.
Mike
>I don't want to return errors to the client. I want to to catch the errors inside the object and do some actions if an error occurs.
>
>I tried to po put the error method insode the object, but when I try to use ON ERROR DO .... I get an error....
>
>Vali