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

Exception lacks important information #9

Open
l3m opened this issue Apr 16, 2014 · 0 comments
Open

Exception lacks important information #9

l3m opened this issue Apr 16, 2014 · 0 comments

Comments

@l3m
Copy link

l3m commented Apr 16, 2014

When using Ninject.Extensions.Factory autogenerated factories together with the namescope extension, a binding with faulty scope settings might generate an exception as follows:

 Ninject.Extensions.NamedScope.UnknownScopeException: The scope 
     SomeScope is not known in the current context.
 at Ninject.Extensions.NamedScope.NamedScopeExtensionMethods
     .GetScope(IContext context, String scopeParameterName)
 System.Exception {Ninject.Extensions.NamedScope.UnknownScopeException.

Given only this exception message, it is really hard to find out where the problem lies. An exception message such as in normal ninject binding failures would greatly improve the situation.

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