aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CannotCompileException.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-10-18 18:53:57 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-10-18 18:53:57 +0000
commit86309c3ef22ce216bc861974bfe13b07aafe09f1 (patch)
tree92bb3d1e1cd8c51ef0a745f783b1f9a4ad46fe10 /src/main/javassist/CannotCompileException.java
parent56c38f0ea0572dda6fdf7fcbe4762ca785bb359d (diff)
downloadjavassist-86309c3ef22ce216bc861974bfe13b07aafe09f1.tar.gz
javassist-86309c3ef22ce216bc861974bfe13b07aafe09f1.zip
reformatted.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@143 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/CannotCompileException.java')
-rw-r--r--src/main/javassist/CannotCompileException.java17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/main/javassist/CannotCompileException.java b/src/main/javassist/CannotCompileException.java
index f01a79a0..04266281 100644
--- a/src/main/javassist/CannotCompileException.java
+++ b/src/main/javassist/CannotCompileException.java
@@ -33,6 +33,8 @@ public class CannotCompileException extends Exception {
/**
* Constructs a CannotCompileException with a message.
+ *
+ * @param msg the message.
*/
public CannotCompileException(String msg) {
super(msg);
@@ -41,7 +43,10 @@ public class CannotCompileException extends Exception {
}
/**
- * Constructs a CannotCompileException with an <code>Exception</code>.
+ * Constructs a CannotCompileException with an <code>Exception</code>
+ * representing the cause.
+ *
+ * @param e the cause.
*/
public CannotCompileException(Throwable e) {
super("by " + e.toString());
@@ -49,6 +54,13 @@ public class CannotCompileException extends Exception {
cause = e;
}
+ /**
+ * Constructs a CannotCompileException with a detailed message
+ * and an <code>Exception</code> representing the cause.
+ *
+ * @param msg the message.
+ * @param e the cause.
+ */
public CannotCompileException(String msg, Throwable e) {
this(msg);
cause = e;
@@ -66,8 +78,7 @@ public class CannotCompileException extends Exception {
* Constructs a CannotCompileException with an <code>CompileError</code>.
*/
public CannotCompileException(CompileError e) {
- super("[source error] " + e.getMessage(), e);
- message = null;
+ this("[source error] " + e.getMessage(), e);
}
/**