This callback handles errors from API


Example

this.onApiError = function (args, xhr) {
  return;
};