User: user57
Date: 02/02/16 20:10:37
Modified: src/main/org/jboss/deployment DeploymentException.java
Log:
o extend from NestedException for better stack trace handling
Revision Changes Path
1.6 +41 -35 jboss/src/main/org/jboss/deployment/DeploymentException.java
Index: DeploymentException.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/deployment/DeploymentException.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- DeploymentException.java 8 Feb 2002 01:06:19 -0000 1.5
+++ DeploymentException.java 17 Feb 2002 04:10:37 -0000 1.6
@@ -4,52 +4,58 @@
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
+
package org.jboss.deployment;
+import org.jboss.util.NestedException;
+
/**
- * Thrown by a deployer if an application component could not be
- * deployed.
+ * Thrown by a deployer if an application component could not be
+ * deployed.
*
- * @see DeployerMBean
- * @author <a href="mailto:[EMAIL PROTECTED]">Toby Allsopp</a>
- * @version $Revision: 1.5 $
+ * @see DeployerMBean
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">Toby Allsopp</a>
+ * @version $Revision: 1.6 $
*/
public class DeploymentException
- extends Exception
+ extends NestedException
{
- // Attributes ----------------------------------------------------
-
- /** The root cause of this exception */
- protected Throwable cause;
-
- // Static --------------------------------------------------------
-
- // Constructors --------------------------------------------------
-
- public DeploymentException(String message)
- {
- super(message);
+ /**
+ * Construct a <tt>DeploymentException</tt> with the specified detail
+ * message.
+ *
+ * @param msg Detail message.
+ */
+ public DeploymentException(String msg) {
+ super(msg);
}
-
- public DeploymentException(String message, Throwable cause)
- {
- super(message);
-
- this.cause = cause;
+
+ /**
+ * Construct a <tt>DeploymentException</tt> with the specified detail
+ * message and nested <tt>Throwable</tt>.
+ *
+ * @param msg Detail message.
+ * @param nested Nested <tt>Throwable</tt>.
+ */
+ public DeploymentException(String msg, Throwable nested) {
+ super(msg, nested);
}
- public DeploymentException(Throwable cause)
- {
- this(cause.getMessage(), cause);
+ /**
+ * Construct a <tt>DeploymentException</tt> with the specified
+ * nested <tt>Throwable</tt>.
+ *
+ * @param nested Nested <tt>Throwable</tt>.
+ */
+ public DeploymentException(Throwable nested) {
+ super(nested);
}
-
- // Public --------------------------------------------------------
- public Throwable getCause() { return cause; }
-
- public String toString()
- {
- return cause == null ? super.toString()
- : super.toString() + ", Cause: " + cause;
+ /**
+ * Construct a <tt>DeploymentException</tt> with no detail.
+ */
+ public DeploymentException() {
+ super();
}
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development