diff options
Diffstat (limited to 'src/main/javassist/bytecode/BadBytecode.java')
-rw-r--r-- | src/main/javassist/bytecode/BadBytecode.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/javassist/bytecode/BadBytecode.java b/src/main/javassist/bytecode/BadBytecode.java index 71e5bb9d..9959ae6c 100644 --- a/src/main/javassist/bytecode/BadBytecode.java +++ b/src/main/javassist/bytecode/BadBytecode.java @@ -31,4 +31,10 @@ public class BadBytecode extends Exception { public BadBytecode(String msg, Throwable cause) { super(msg, cause); } + + public BadBytecode(MethodInfo minfo, Throwable cause) { + super(minfo.toString() + " in " + + minfo.getConstPool().getClassName() + + ": " + cause.getMessage(), cause); + } } |