Class InvalidOptionException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by name.kevinlocke.ultragetopt.CommandLineException
              extended by name.kevinlocke.ultragetopt.InvalidOptionException
All Implemented Interfaces:

public class InvalidOptionException
extends CommandLineException

Exception signaling that an option was determined to be invalid by the optionEncountered method. This exception is only thrown by an optionEncountered function written by an application programmer (the default optionEncountered method does nothing). It is intended to be used for signaling any condition that should terminate command-line processing and prevent the UltraGetopt constructor from returning.

Kevin Locke <>
See Also:
CommandLineOption.optionEncountered(String), Serialized Form

Constructor Summary
InvalidOptionException(java.lang.String message)
          Creates a new invalid option exception with the given error message.
Method Summary
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


public InvalidOptionException(java.lang.String message)
Creates a new invalid option exception with the given error message.

message - the error message indicating the cause of this exception