You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ri...@apache.org on 2010/08/31 21:27:23 UTC
svn commit: r991305 -
/felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java
Author: rickhall
Date: Tue Aug 31 19:27:23 2010
New Revision: 991305
URL: http://svn.apache.org/viewvc?rev=991305&view=rev
Log:
Added bundle info to CNFE message. (FELIX-1022)
Modified:
felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java
Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java?rev=991305&r1=991304&r2=991305&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java Tue Aug 31 19:27:23 2010
@@ -732,7 +732,9 @@ public class ModuleImpl implements Modul
// cause of the exception, since this would
// potentially leak internal module information.
throw new ClassNotFoundException(
- name + ": cannot resolve package "
+ name + " not found because "
+ + getBundle()
+ + " cannot resolve: "
+ ex.getRequirement());
}
else
@@ -748,7 +750,9 @@ public class ModuleImpl implements Modul
// We need to throw a resource not found exception.
throw new ResourceNotFoundException(
- name + ": cannot resolve package "
+ name + " not found because "
+ + getBundle()
+ + " cannot resolve: "
+ ex.getRequirement());
}
}
@@ -769,11 +773,13 @@ public class ModuleImpl implements Modul
{
if (isClass)
{
- throw new ClassNotFoundException(name);
+ throw new ClassNotFoundException(
+ name + " not found by " + this.getBundle());
}
else
{
- throw new ResourceNotFoundException(name);
+ throw new ResourceNotFoundException(
+ name + " not found by " + this.getBundle());
}
}