I've created a centralised error handler (yay for me) called
HandleError that exists in a class module. The func takes in a couple
of strings and then a ByVal ErrObject (the actual VB error object) and
a couple of optional error objects (ADODBErrors collection and
XMLParse Error). I then extract all necessary data from the error
objects and chuck them into an XML document.
It all works fine and dandy, until I try to add the line 'On Error
Goto ErrHandler' in the HandleError func. Then I lose my values from
my ErrObject parameter. I guess that line of code clears the VB Error
object, which is a bit of a pain because I need the values in it. I
suppose I could extract the VB error object's values before that line,
but I'd rather not.
So, how does one do error handling inside an error handling routine?
By the way, I'd rather pass in error objects then error values, like,
don't even go there, girlfriend... <Ahem>
Thanks for any help,