emberjs/data — pull request #87 by vr-pair (2012-02-10 00:18:05+00:00)
Title: RESTAdapter invokes user-specified error callbacks.

This PR allows users to specify an error handler that is invoked on server errors when records are created, updated or queried.

In the special case of a single record (create or update) with a status of 422, the record is invalidated with `store.recordWasInvalid`.

Example:

```javascript

DS.RESTAdapter.create({
error: function( jqXhr, action, models ) {
// user-supplied error handling
}
});
````

/cc @hjdivad @Cyril-sf