org.apache.commons.cli
Class UnrecognizedOptionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.commons.cli.ParseException
              extended by org.apache.commons.cli.UnrecognizedOptionException
All Implemented Interfaces:
Serializable

public class UnrecognizedOptionException
extends ParseException

Exception thrown during parsing signalling an unrecognized option was seen.

Version:
$Revision: 680644 $, $Date: 2008-07-29 01:13:48 -0700 (Tue, 29 Jul 2008) $
Author:
bob mcwhiter (bob @ werken.com)
See Also:
Serialized Form

Constructor Summary
UnrecognizedOptionException(String message)
          Construct a new UnrecognizedArgumentException with the specified detail message.
UnrecognizedOptionException(String message, String option)
          Construct a new UnrecognizedArgumentException with the specified option and detail message.
 
Method Summary
 String getOption()
          Returns the unrecognized option.
 
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

UnrecognizedOptionException

public UnrecognizedOptionException(String message)
Construct a new UnrecognizedArgumentException with the specified detail message.

Parameters:
message - the detail message

UnrecognizedOptionException

public UnrecognizedOptionException(String message,
                                   String option)
Construct a new UnrecognizedArgumentException with the specified option and detail message.

Parameters:
message - the detail message
option - the unrecognized option
Since:
1.2
Method Detail

getOption

public String getOption()
Returns the unrecognized option.

Returns:
the related option
Since:
1.2


Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.