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
A wrong-kind refusal has a class of its own: OwKindError.create, upsert, patch, bulk and propose throw it for the first value kindFaults names, before sending, in the same words as before. It extends TypeError, so a catch that tests for TypeError still holds it; it carries type (the element type the write was for) and fault ({ field, kind, value }, as kindFaults names it). A catch that reads any TypeError as "offline" can now tell this refusal apart with instanceof OwKindError. A connection that never reached the server is still thrown as OwNetworkError, never as a TypeError.