AliSoftware / Dip

Simple Swift Dependency container. Use protocols to resolve your dependencies and avoid singletons / sharedInstances!
MIT License
977 stars 72 forks source link

Make throwing errors more consistent #53

Closed ilyapuchka closed 8 years ago

ilyapuchka commented 8 years ago

resolve method can currently throw ResolutionFailed with underlying error or DefinitionNotFound error. ResolutionFailed error wraps any errors thrown by inner resolve calls. Should we make it more consistent and always wrap any error in ResolutionFailed error? Or should we get rid of it and just rethrow what ever inner resolve calls throw without any wrapping?