asciidisco / asciidisco/Backbone.Rpc

Use an `error` callback just like regular Backbone/jQuery deferred objects would.

Open
#16 1 comment 0 reactions 1 assignee Claimed by @asciidisco View on GitHub
bug
Dominant language
JavaScript
Stars
50
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Is it possible to make the Rpc call use an `error` callback by passing the JSON-RPC error response to it? Like this:

```
user.checkLoggedIn({
success: function(model response){
// do something
},
error: function(model, exception){
alert(exception.message);
},
});
```

Where `user` is an instance of a Backbone model and `checkLoggedIn` is one of the RPC methods.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.