User: user57 Date: 01/07/12 18:30:17 Modified: src/main/org/jboss/ejb DeploymentException.java Log: o reindent Revision Changes Path 1.6 +20 -10 jboss/src/main/org/jboss/ejb/DeploymentException.java Index: DeploymentException.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/DeploymentException.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- DeploymentException.java 2001/06/18 20:01:21 1.5 +++ DeploymentException.java 2001/07/13 01:30:17 1.6 @@ -7,23 +7,26 @@ package org.jboss.ejb; /** - * This exception is thrown by the ContainerFactory if an EJB application - * could not be deployed + * This exception is thrown by the ContainerFactory if an EJB application + * could not be deployed. * - * @see ContainerFactory - * @author <a href="mailto:[EMAIL PROTECTED]">Rickard Öberg</a> - * @version $Revision: 1.5 $ + * @see ContainerFactory + * + * @author <a href="mailto:[EMAIL PROTECTED]">Rickard Öberg</a> + * @version $Revision: 1.6 $ */ public class DeploymentException extends Exception { // Attributes ---------------------------------------------------- - // The root cause of this exception - Exception cause; + + /** The root cause of this exception */ + protected Exception cause; // Static -------------------------------------------------------- // Constructors -------------------------------------------------- + public DeploymentException(String message) { super(message); @@ -32,12 +35,19 @@ public DeploymentException(String message, Exception e) { super(message); - cause = e; } // Public -------------------------------------------------------- - public Exception getCause() { return cause; } - public String toString() { return cause == null ? super.toString() : super.toString()+", Cause:"+cause; } + public Exception getCause() { + return cause; + } + + public String toString() { + return + cause == null ? + super.toString() : + super.toString() + ", Cause: " + cause; + } } _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development