Skip to content

Commit

Permalink
better exception
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@1677 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
pmuir committed Feb 24, 2009
1 parent ebca7e0 commit d8ff4ce
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -86,11 +86,11 @@ public void validate()
Set<?> resolvedBeans = manager.resolveByType(type, bindings);
if (resolvedBeans.isEmpty())
{
throw new UnsatisfiedDependencyException("The injection point " + injectionPoint + " has unsatisfied dependencies for type " + type + " and binding types " + bindings + " in " + bean);
throw new UnsatisfiedDependencyException("The injection point " + injectionPoint + " in " + bean + " has unsatisfied dependencies");
}
if (resolvedBeans.size() > 1)
{
throw new AmbiguousDependencyException("The injection point " + injectionPoint + " has ambiguous dependencies for type " + type + " and binding types " + bindings + " in " + bean);
throw new AmbiguousDependencyException("The injection point " + injectionPoint + " in " + bean + " has ambiguous dependencies");
}
Bean<?> resolvedBean = (Bean<?>) resolvedBeans.iterator().next();
if (MetaDataCache.instance().getScopeModel(resolvedBean.getScopeType()).isNormal() && !Proxies.isTypeProxyable(type))
Expand Down

0 comments on commit d8ff4ce

Please sign in to comment.