Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

Store Model and Field chain in SerdeErrors #38

Closed
rossmacarthur opened this issue Dec 9, 2018 · 0 comments
Closed

Store Model and Field chain in SerdeErrors #38

rossmacarthur opened this issue Dec 9, 2018 · 0 comments
Labels
feature New feature or request

Comments

@rossmacarthur
Copy link
Owner

If there is a serialization, deserialization, or validation failure on some nested Model, it would be nice to traverse the Model and Field objects that the failure occurred in.

@rossmacarthur rossmacarthur added the feature New feature or request label Dec 9, 2018
rossmacarthur added a commit that referenced this issue Feb 6, 2019
- Change Model deserialization to always raise DeserializationErrors on failure.
- Change Model instantiation to always raise InstantiationErrors.
- Add ContextError when Fields are used in the wrong context.
- Support pretty printing of SerdeErrors and context.
- Support iterating through error context chain. (Resolves #38)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant