org.edg.data.util
Class CommandLineException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.edg.data.util.DataException
                    |
                    +--org.edg.data.util.CommandLineException
All Implemented Interfaces:
java.io.Serializable

public class CommandLineException
extends DataException

Exception thrown if there was an error on the command line.

Version:
$Id: CommandLineException.java,v 1.1 2003/02/27 10:34:28 pkunszt Exp $
Author:
Peter Kunszt
See Also:
Serialized Form

Constructor Summary
CommandLineException(java.lang.String text, Command cmd)
          Constructs a CommandLineException.
 
Method Summary
 boolean hasCommand()
          check whether command was set
 void printHelp()
          Print help on command on screen
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandLineException

public CommandLineException(java.lang.String text,
                            Command cmd)
Constructs a CommandLineException.

Parameters:
text - The error message
cmd - The command that was issued
Method Detail

printHelp

public void printHelp()
Print help on command on screen


hasCommand

public boolean hasCommand()
check whether command was set