qflib 0.98.0

de.qfs.lib.util
Class MalformedArgumentListException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--de.qfs.lib.util.MalformedArgumentListException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MissingParameterException, UnexpectedParameterException, UnknownOptionException

public class MalformedArgumentListException
extends java.lang.Exception

A MalformedArgumentListException is the base class for exceptions thrown by ArgsParser.parse when it encounters inconsistencies in the command line arguments.

Version:
$Revision: 1.6 $
Author:
Gregor Schmid
See Also:
Serialized Form

Constructor Summary
MalformedArgumentListException(java.lang.String message, java.lang.String option)
          Create a new MalformedArgumentListException.
 
Method Summary
 java.lang.String getOption()
          Get the name of the option that caused the error.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MalformedArgumentListException

public MalformedArgumentListException(java.lang.String message,
                                      java.lang.String option)
Create a new MalformedArgumentListException.
Parameters:
message - A message explaining the reason for the exception.
option - The option that caused the exception.
Method Detail

getOption

public java.lang.String getOption()
Get the name of the option that caused the error.
Returns:
The option that caused the error, without the leading '-'.

qflib 0.98.0