RTC Forums

Subscription => Support => Topic started by: ISIGest on April 22, 2015, 02:19:54 PM



Title: Execute Result with Error Code
Post by: ISIGest on April 22, 2015, 02:19:54 PM
Please can you make the Exception raise in Execute method more detailed.
So, I need to show a custom message in my application when TRtcClientModule.Execute method raise an exception, now if wait_Timeout will be raised this exception
raise ERtcExecuteError.Create('Error: Connection problems, response timed out.');, if you add to ERtcExecuteError a custom property like ErrorCode with a different error code for "wait_Timeout", "wait_Quit", etc...I can intercept this exception and have a most detailed situation.


Title: Re: Execute Result with Error Code
Post by: D.Tkalcec (RTC) on April 22, 2015, 04:00:45 PM
Done and ready for download (RTC SDK v6.53).

"ERtcExecuteError" class now has the "ErrorCode" property, which will contain the Result from the WaitForCompletion method, allowing more detailed error handling when using TRtcClientModule's Execute method.

Best Regards,
Danijel Tkalcec


Title: Re: Execute Result with Error Code
Post by: ISIGest on April 23, 2015, 10:39:35 AM
Thanks you so much :)


Title: Re: Execute Result with Error Code
Post by: D.Tkalcec (RTC) on April 23, 2015, 11:03:09 AM
You're welcome. It was a good idea and very easy to implement, so  ;)

Best Regards,
Danijel Tkalcec