Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@2222 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
Victor Yarmolovich committed Mar 27, 2009
1 parent e51729d commit f5d1ed7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -54,7 +54,7 @@ public static <T> AnnotatedClass<? extends T> loadElementClass(Element element,
}

if (classesList.size() == 0)
throw new DefinitionException("Could not find '" + className + "'");
throw new DefinitionException("Could not find '" + className + "'", new DefinitionException(className + " not a Java type"));

if (classesList.size() == 1)
return classesList.get(0);
Expand Down
Expand Up @@ -94,10 +94,15 @@ private void checkBeanChild(Element beanChildElement)
//TODO: bean child element declaring a parameter of the bean constructor
return;
}
throw new DefinitionException();//bean child element can't be interpreted as a Java class or interface or Java Annotation type
throw new DefinitionException(new DefinitionException(beanChildElement.getName() + " can't be interpreted as a Java class or interface or Java Annotation type"));
}
catch(DefinitionException e)
{
if(!(e.getCause() instanceof DefinitionException))
{
throw new DefinitionException(e);
}

Element beanElement = beanChildElement.getParent();
Namespace beanNamespace = beanElement.getNamespace();
Namespace beanChildNamespace = beanChildElement.getNamespace();
Expand Down

0 comments on commit f5d1ed7

Please sign in to comment.