C
cj
I'm working on error handling in my program and need some input.
Dim errorsFound As Boolean = False
Dim respstr As String
Try
respstr = proxy.validate(soapmesg)
Catch ex As Exception
errorLabel.Text = ex.Message
errorsFound = True
End Try
If Not errorsFound .....
I'd rather not use boolean errorsFound. What I don't know is if an
exception occured in respstr=proxy.validate(soapmesg) can I count on
respstr being empty? If so I'll just say If not respstr = ""
Dim errorsFound As Boolean = False
Dim respstr As String
Try
respstr = proxy.validate(soapmesg)
Catch ex As Exception
errorLabel.Text = ex.Message
errorsFound = True
End Try
If Not errorsFound .....
I'd rather not use boolean errorsFound. What I don't know is if an
exception occured in respstr=proxy.validate(soapmesg) can I count on
respstr being empty? If so I'll just say If not respstr = ""