Error handler for $xhr service
. An application can replaces this
service with one specific for the application. The default implementation logs the error to
$log.error
.
error(request, response);
request – {Object} –
Request object.
The object has the following properties
method
– {string}
– The http request method.url
– {string}
– The request destination.data
– `{(string|Object)=} – An optional request body.callback
– {function()}
– The callback functionresponse – {Object} –
Response object.
The response object has the following properties: