ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From meta...@apache.org
Subject cvs commit: jakarta-ant/src/antidote/org/apache/tools/ant/gui/command DisplayErrorCmd.java
Date Thu, 11 Jan 2001 19:22:01 GMT
metasim     01/01/11 11:22:01

  Modified:    src/antidote/org/apache/tools/ant/gui/command
                        DisplayErrorCmd.java
  Log:
  Cleaned up standard ctor.
  
  Revision  Changes    Path
  1.7       +11 -11    jakarta-ant/src/antidote/org/apache/tools/ant/gui/command/DisplayErrorCmd.java
  
  Index: DisplayErrorCmd.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/command/DisplayErrorCmd.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DisplayErrorCmd.java	2001/01/03 14:18:19	1.6
  +++ DisplayErrorCmd.java	2001/01/11 19:21:58	1.7
  @@ -62,7 +62,7 @@
   /**
    * Command for displaying an arbitrary error message to the user.
    *
  - * @version $Revision: 1.6 $ 
  + * @version $Revision: 1.7 $ 
    * @author Simeon H.K. Fitch 
    */
   public class DisplayErrorCmd extends AbstractCommand {
  @@ -77,30 +77,30 @@
   	 * @param context Application context.
   	 */
       public DisplayErrorCmd(AppContext context) {
  -        super(context);
  +        this(context, null, null);
       }
   
   	/** 
  -	 * Standard constuctor.
  +	 * No Throwable constructor.
   	 * 
   	 * @param context Application context.
   	 * @param message Error message.
  -	 * @param ex Throwable assocated with error.
   	 */
  -    public DisplayErrorCmd(AppContext context, String message, Throwable ex) {
  -        this(context);
  -        setMessage(message);
  -        setThrowable(_ex);
  +    public DisplayErrorCmd(AppContext context, String message) {
  +        this(context, message, null);
       }
   
   	/** 
  -	 * No Throwable constructor.
  +	 * Standard constuctor.
   	 * 
   	 * @param context Application context.
   	 * @param message Error message.
  +	 * @param ex Throwable assocated with error.
   	 */
  -    public DisplayErrorCmd(AppContext context, String message) {
  -        this(context, message, null);
  +    public DisplayErrorCmd(AppContext context, String message, Throwable ex) {
  +        super(context);
  +        _message = message;
  +        _ex = ex;
       }
   
   	/** 
  
  
  

Mime
View raw message