RTC Forums
May 15, 2024, 04:30:59 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Execute Result with Error Code  (Read 3727 times)
ISIGest
RTC Expired
*
Posts: 121


« 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.
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 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
Logged
ISIGest
RTC Expired
*
Posts: 121


« Reply #2 on: April 23, 2015, 10:39:35 AM »

Thanks you so much Smiley
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #3 on: April 23, 2015, 11:03:09 AM »

You're welcome. It was a good idea and very easy to implement, so  Wink

Best Regards,
Danijel Tkalcec
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.023 seconds with 17 queries.