Catching the [create-error]/[update-error] exceptoin

E Efkan YILMAZ 3 years 7 months ago
1 1 0

Newbie here

i have this method in my source adapter
this.query = function(resp) {
new rc.ServerErrorException(resp, "Server not available.Contact your administrator");
        var result = {};
        var str = '';
      resp.send(result);

I am able to catch the error message on my ui using
params["server_errors"]["create-error"][object]["message"];

If i do the same in the create or update method of source adapter i am not able to catch the error ,i tried methods from docs it still wouldn't work , if anybody can provide the proper javascript syntax that would be much appreciated.

Please Register or Login to post a reply

1 Replies

J Jake Bernstein

Hey Abhilash,

Have you checked out the recent tutorial on learning RhoConnect? Rhomobile | RhoConnect Tutorial? I found it very useful for getting to know RhoConnect when I was first starting and it has a great example of how to structure your Javascript Model.

CONTACT
Can’t find what you’re looking for?