java.lang.Object
java.lang.Throwable
java.lang.Exception
org.dinopolis.util.commandarguments.CommandArgumentException
org.dinopolis.util.commandarguments.InvalidCommandArgumentFormatException
- All Implemented Interfaces:
- java.io.Serializable
- public class InvalidCommandArgumentFormatException
- extends CommandArgumentException
CommandInvalidArgumentFormatException is used by CommandArguments to
indicate that a given argument has an invalid value. This might
be an argument that is declared to have a number as value, but the
value is either missing at all or cannot be converted to a number.
- Version:
- $Id: InvalidCommandArgumentFormatException.java,v 1.1.1.1 2003/01/10 15:33:38 cdaller Exp $
| Nested classes inherited from class java.lang.Throwable |
|
| Fields inherited from class java.lang.Exception |
|
| Fields inherited from class java.lang.Throwable |
|
|
Method Summary |
int |
getPosition()
Returns the position of the invalid argument. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
InvalidCommandArgumentFormatException
public InvalidCommandArgumentFormatException()
- Empty standard constructor;
InvalidCommandArgumentFormatException
public InvalidCommandArgumentFormatException(java.lang.String message)
- Standard constructor with a message as argument.
InvalidCommandArgumentFormatException
public InvalidCommandArgumentFormatException(java.lang.String message,
int position)
- Constructor with a message and the invalid argument's position as
the arguments.
getPosition
public int getPosition()
- Returns the position of the invalid argument.
- Overrides:
getPosition in class CommandArgumentException