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

migrate from exceptions to nserror #5

Closed
icanzilb opened this issue Dec 12, 2012 · 1 comment
Closed

migrate from exceptions to nserror #5

icanzilb opened this issue Dec 12, 2012 · 1 comment
Milestone

Comments

@icanzilb
Copy link
Collaborator

After reading extensively through the apple docs, I'll have to migrate from exceptions to using nserror. Pity - exceptions looked as the perfect way to handle nested models import errors.

@icanzilb
Copy link
Collaborator Author

all init methods take in a JSONModelError parameter.
the init methods still throw exceptions - in the case the model has a property with no defined transformer -> programmer mistake, therefore an exception

jkmathew added a commit to jkmathew/JSONModel that referenced this issue Sep 14, 2014
added methods for checking  initWithData
Just copied from SimpleDataErrorTests and replaced
stringWithContentsOfFile with dataWithContentsOfFile and init with data
accordingly
Added methods
jsonmodel#1. testErrorsInNestedModelsDictionary
jsonmodel#2. testErrorsInNestedModelsArray
jsonmodel#3. testMissingKeysError
jsonmodel#4. testTypeMismatchErrorImages
jsonmodel#5. testTypeMismatchErrorImagesObject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant