Skip to content

This PR adds a MissingDpendencyException to Picotainer. This exception is fired when the entry is found, but the factory method of the entry triggers a NotFoundException (because of a missing dependency fetched from the container).#4

Open
moufmouf wants to merge 2 commits intothecodingmachine:1.0from
moufmouf:missing_dependency_exception

Conversation

@moufmouf
Copy link
Member

@moufmouf moufmouf commented Sep 3, 2016

The rationale is to make a difference between a get method that was passed a wrong ID and a messed up factory. The MissingDependencyException should not be catched while the NotFoundException is meant to be catched.

@moufmouf moufmouf self-assigned this Sep 3, 2016
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 2d9cede on moufmouf:missing_dependency_exception into 373b229 on thecodingmachine:1.0.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 2d9cede on moufmouf:missing_dependency_exception into 373b229 on thecodingmachine:1.0.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 2d9cede on moufmouf:missing_dependency_exception into 373b229 on thecodingmachine:1.0.

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

Successfully merging this pull request may close these issues.

2 participants