Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.dinopolis.util.commandarguments
Class InvalidCommandArgumentFormatException  view InvalidCommandArgumentFormatException download InvalidCommandArgumentFormatException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.dinopolis.util.commandarguments.CommandArgumentException
              extended byorg.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 Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
 
Fields inherited from class org.dinopolis.util.commandarguments.CommandArgumentException
position_
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
InvalidCommandArgumentFormatException()
          Empty standard constructor;
InvalidCommandArgumentFormatException(java.lang.String message)
          Standard constructor with a message as argument.
InvalidCommandArgumentFormatException(java.lang.String message, int position)
          Constructor with a message and the invalid argument's position as the arguments.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.

Method Detail

getPosition

public int getPosition()
Returns the position of the invalid argument.

Overrides:
getPosition in class CommandArgumentException