wvteijlingen / Spine

A Swift library for working with JSON:API APIs. It supports mapping to custom model classes, fetching, advanced querying, linking and persisting.
MIT License
266 stars 109 forks source link

Replace NSError for api errors #60

Closed wvteijlingen closed 8 years ago

wvteijlingen commented 8 years ago

Currently we use NSError objects to represent errors returned in the API response. This makes it hard to access all the error fields that JSON:API specifies. It's probably better to use a custom struct for this,

wvteijlingen commented 8 years ago

See the https://github.com/wvteijlingen/Spine/tree/swifty-errors branch.