diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2008-03-19 12:59:36 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2008-03-19 12:59:36 +0000 |
commit | d3fa7e4cc83e834e3ff6f436861c6a47173ae323 (patch) | |
tree | 6da3988263049042030ea01b1231ccb95aef0e0b | |
parent | 9df30cbc01a3402cf561ebeecd144037e1da269b (diff) | |
download | javassist-d3fa7e4cc83e834e3ff6f436861c6a47173ae323.tar.gz javassist-d3fa7e4cc83e834e3ff6f436861c6a47173ae323.zip |
fixed JASSIST-45 (better exception message)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@427 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
-rw-r--r-- | src/main/javassist/runtime/Desc.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/javassist/runtime/Desc.java b/src/main/javassist/runtime/Desc.java index 8bf1ce98..fa86a744 100644 --- a/src/main/javassist/runtime/Desc.java +++ b/src/main/javassist/runtime/Desc.java @@ -52,7 +52,10 @@ public class Desc { return getClassObject(name); } catch (ClassNotFoundException e) { - throw new RuntimeException("$class: internal error"); + throw new RuntimeException( + "$class: internal error, could not find class '" + name + + "' (Desc.useContextClassLoader: " + + Boolean.toString(useContextClassLoader) + ")", e); } } |