Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return error info as xml?
Message
From
15/08/2001 15:24:08
 
 
To
15/08/2001 15:16:54
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00544196
Message ID:
00544277
Views:
14
You would pass it on the second parameter, which is basically for a long explanation of the error. AERROR() info could be included in the exception source parameter.

But you are right, the client app needs to be expecting it, otherwise the user would just go Huh?

>>Actually you can use ComReturnError() to relay the XML error information back to a COM client. This function was added specifically for improved COM support on errors and is certainly appropriate in this situation.
>
>Hmmm, I woudln't recommend that though. If some COM object did that in my apps, I'd have no idea what do with it. Its all up to the client, and thats why there's the standard error structure.
>
>Though, being able to return TRAPPED (expected) errors safely from a COM object's method is not a bad idea, I do it often.
>
>>Although the help files do not specify if there is a limit to the amount of info you can pass back through it.
>
>I've seen wild things doing that. In VFP7 I got alot of C5 errors, in VFP6 things like "?" would stop working from the command window. Kindof wierd.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform