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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
.. 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.parseErro r.errorCod e <> 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
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.parseErro
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
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.
the 3rd party didn't have any error handling in the web service class and the class that talks to the web service.
is blob the valid label defined in the current procedure?