Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change parseEntity to not wrap errors thrown by Decoders and Decodables. #29

Closed
wants to merge 1 commit into from

Commits on Jun 22, 2017

  1. Change parseEntity to not wrap errors thrown by Decoders and Decoda…

    …bles in a `ParserError`. This allows the decoding process to report error conditions discovered in the JSON (e.g. embedded error codes) as something other than parsing errors.
    
    Added Decoder and Decodable tests to validate that custom errors can be caught as expected.
    Dave Camp authored and Dave Camp committed Jun 22, 2017
    Configuration menu
    Copy the full SHA
    6273fed View commit details
    Browse the repository at this point in the history