-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this change adds proper errors to NewInjector, Child, GetInstance, GetAnnotatedInstance and RequestInjection. also the error handling has been revisited, to be more precise and clear in error situations. panic() only happens in case of Bind(nil) and if providers don't accept errors. Providers can now be of type somethingProvider() Something or somethingProvider() (Something, error), later case doesn't panic, but returns an error if resolving/providing fails.
- Loading branch information
1 parent
5712389
commit a9d3c82
Showing
16 changed files
with
461 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.