0

How to get the errors returned when calling a RESTAdapter method (by example deleteRecord).

I can see this code in the sources but I do not clearly understand.

Is there a sample code available providing error handling management with ember-model RESTAdapter ?

settings.error = function(jqXHR, textStatus, errorThrown) {
        Ember.run(null, reject, jqXHR);
      };
fvisticot
  • 7,936
  • 14
  • 49
  • 79

1 Answers1

0

The Ember Documentation describes promises and how to handle them.

Andrew Hacking
  • 6,296
  • 31
  • 37