steamclock / netable

A Swift library for encapsulating network APIs using Codable in a type-oriented way.
MIT License
99 stars 3 forks source link

Add error codes #43

Closed sakuraehikaru closed 4 years ago

sakuraehikaru commented 4 years ago

Add specific error codes. This can greatly help with crash and non-fatal reporting when we need to identify a specific netable error.

sakuraehikaru commented 4 years ago

Thanks @nbrooke that's a really good point. I've added the additional sanity check!