com.nevelex.app.args
Class ArgumentException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.nevelex.app.args.ArgumentException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InvalidArgumentException, MissingArgumentException, UnknownArgumentException

public class ArgumentException
extends java.lang.Exception

The base exception used for command-line argument exceptions.

Version:
1.0 03/22/2001: Initial Version.,
1.1 04/29/2003: Updated documenation.
Author:
Michel Dalal
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
ArgumentException(java.lang.String message, int offset)
          Constructs a UnknownArgumentException with the supplied detailed message.
 
Method Summary
 int getOffset()
          Returns the offset in to the argument array where the error was generated.
 
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

ArgumentException

public ArgumentException(java.lang.String message,
                         int offset)
Constructs a UnknownArgumentException with the supplied detailed message.

Parameters:
message - the detailed message.
offset - the offset in to the argument array where this error was generated.
Method Detail

getOffset

public int getOffset()
Returns the offset in to the argument array where the error was generated.