RTC Forums
November 24, 2024, 02:36:04 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Login
Register
RTC Forums
>
Subscription
>
Support
>
How are server errors handled?
Pages: [
1
]
« previous
next »
Print
Author
Topic: How are server errors handled? (Read 4190 times)
DPerkins
RTC License
Posts: 37
How are server errors handled?
«
on:
January 03, 2014, 03:54:46 PM »
If on the server I encounter an error when processing a request, is it up to me to devise a method to send that error back to the client? Let's say that an exception is thrown in an TRtcFunction.OnExecute routine. Does RTC silently handle it, or should it be propagated back to the client? I thought I had read that the latter was correct, but the former is happening.
Logged
D.Tkalcec (RTC)
Administrator
Posts: 1881
Re: How are server errors handled?
«
Reply #1 on:
January 03, 2014, 04:57:51 PM »
Exceptions that get out of the OnExecute event connected to the TRtcFunction component will be caught by the TRtcServerModule and sent back to the client with Result.asType = rtc_Exception and the Result.asException containing the exception message. But that is just the default. It unless the exception is a result of bad function usage, it would be better if you would handle it on the Server side and let the Client know what's wrong by sending a custom result.
Best Regards,
Danijel Tkalcec
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Dashboard
-----------------------------
=> General
=> 3rd-Party
=> Quick Start
-----------------------------
Subscription
-----------------------------
=> Support
Loading...