Link to home
Start Free TrialLog in
Avatar of mrb121212
mrb121212

asked on

error handling

Hello guys,
i am trying to handle errors with the usual On Error GoTo blob: however this call to a webservice is not going in there when there is an exception.
Can you guys help out on what to do on this?

thanks
Avatar of Muhammad Khan
Muhammad Khan
Flag of Canada image

what webservice? :-?

is blob the valid label defined in the current procedure?
ASKER CERTIFIED SOLUTION
Avatar of Leo Eikelman
Leo Eikelman

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Leo Eikelman
Leo Eikelman

.. just to follow up.  Here is an example.

Say I make a call to a web service and it returns an XML String.  And I want to check if the XML is formatted correctly.  I would do something like this:

If (SomeDomDocument.parseError.errorCode <> 0) Then
            Dim xmlErr
            Set xmlErr = SomeDomDocument.parseError
            errorReason = xmlErr.reason
            Set xmlErr = Nothing
            Err.Raise 10001, "SomeClass", "Configuration File is not in XML format"
Else


Cheers,

Leo
Avatar of mrb121212

ASKER

thanks for the help Leo.
the 3rd party didn't have any error handling in the web service class and the class that talks to the web service.