You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Idea behind this refactor is to have a sane way to deal with different types of errors. Adapters will read the payload, create an appropriate error (ValidationError, AdapterError, TimeoutError) and pass it down to Serializers (or other consumers). It will also deprecate passing jqXHR object around.
Idea behind this refactor is to have a sane way to deal with different types of errors.
Adapters
will read the payload, create an appropriate error (ValidationError
,AdapterError
,TimeoutError
) and pass it down toSerializers
(or other consumers). It will also deprecate passingjqXHR
object around.InvalidError
from adapter codeparseErrors
method is needed onBaseAdapter
to parse json and extract errorsextractErrors
method is needed onserializers
store
rejects with errors (here and here)activeModelAdapter
rejects with errors (here)restAdapter
rejects with errors (here)AdapterError
ValidationError
TimeoutError
xhr
object from jQueryjqXHR
should not be passed aroundjson:api
error type sematics should be supported OOB (might be a part of this PR)fetch
polyfillEmber.Enumerable
->EmberArray
(here)Original #2840
The text was updated successfully, but these errors were encountered: