KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > console > examples > QuitCommand


1 package org.sapia.console.examples;
2
3 import org.sapia.console.AbortException;
4 import org.sapia.console.Command;
5 import org.sapia.console.Context;
6 import org.sapia.console.InputException;
7
8
9 /**
10  * @author Yanick Duchesne
11  * 2-May-2003
12  */

13 public class QuitCommand implements Command {
14   /**
15    * Constructor for QuitCommand.
16    */

17   public QuitCommand() {
18     super();
19   }
20
21   /**
22    * @see org.sapia.console.Command#execute(Context)
23    */

24   public void execute(Context ctx) throws AbortException, InputException {
25     throw new AbortException();
26   }
27 }
28
Popular Tags