readdle / swift-anycodable

Utils that help encode/decode abstract types via Swift Codable API
MIT License
4 stars 7 forks source link

Dev: replace unnecessary fatal error with throwing DecodingError #2

Closed andriydruk closed 6 years ago

andriydruk commented 6 years ago

replace fatal error with Decoding Error for unregistered types, because it can be an issue for JSON from serverside