asciidisco / asciidisco/Backbone.Rpc
Use an `error` callback just like regular Backbone/jQuery deferred objects would.
Open
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.