org.brains2b.console
Class ArgumentException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.brains2b.console.ArgumentException
All Implemented Interfaces:
java.io.Serializable

public class ArgumentException
extends java.lang.Exception

Exception for handling undefined arguments in the Main console class and accompanying ArgumentMap

Version:
0.11 [06-10-2003]
Author:
dennis@brains2b.nl
See Also:
Serialized Form

Field Summary
static java.lang.String MISSING_ARGUMENT
          Constant for error message A required argument is missing
static java.lang.String NOT_RECOGNIZED
          Constant for error message Not recognized as an argument
 
Constructor Summary
ArgumentException(java.lang.String message)
          Constructor for ArgumentException.
ArgumentException(java.lang.String arg, java.lang.String message)
          Constructor for ArgumentException.
 
Method Summary
 java.lang.String getArgument()
          Gets the Argument for which the Exception was thrown
 
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
 

Field Detail

NOT_RECOGNIZED

public static final java.lang.String NOT_RECOGNIZED
Constant for error message Not recognized as an argument

See Also:
Constant Field Values

MISSING_ARGUMENT

public static final java.lang.String MISSING_ARGUMENT
Constant for error message A required argument is missing

See Also:
Constant Field Values
Constructor Detail

ArgumentException

public ArgumentException(java.lang.String message)
Constructor for ArgumentException.

Parameters:
message - String, the message for this Exception

ArgumentException

public ArgumentException(java.lang.String arg,
                         java.lang.String message)
Constructor for ArgumentException.

Parameters:
arg - String, the argument for which the Exception was thrown
message - String, The exception message
Method Detail

getArgument

public java.lang.String getArgument()
Gets the Argument for which the Exception was thrown

Returns:
String, the long name of the argument.