felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r991305 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java
Date Tue, 31 Aug 2010 19:27:23 GMT
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());
             }
         }
 



Mime
View raw message