Fired when a request to the remote service fails.

The event handler function context (available via the this keyword) will be set to the data source instance.

If the schema.errors option is set and the server response contains that field, then the error event will be fired. The errors field of the event argument will contain the errors returned by the server.

Event Data

e.errorThrown Object (optional)

An optional exception.


The data source instance which fired the event.

e.status String

A string describing the type of the error.

e.xhr Object

The current jqXHR.

Example - subscribe to the error event after initialization

function dataSource_error(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(e.status); // displays "error"
var dataSource = new{
  transport: {
    read: {
      url: ""
dataSource.bind("error", dataSource_error);
In this article