gov.llnl.babel.cli
Class InvalidOptionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by gov.llnl.babel.cli.InvalidOptionException
All Implemented Interfaces:
java.io.Serializable

public class InvalidOptionException
extends java.lang.Exception

This exception is thrown by a CommandLineSwitch when it receives the command line switch is somehow invalid. For example, two switches may be mutually exclusive, so having both in a command line would cause the second switch to throw this exception. Throwing this exception should normally cause a Babel run to quit immediately.

See Also:
Serialized Form

Constructor Summary
InvalidOptionException(java.lang.String message)
          Create an exception to indicate that Babel received an invalid option on the command line.
 
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

InvalidOptionException

public InvalidOptionException(java.lang.String message)
Create an exception to indicate that Babel received an invalid option on the command line. The message should indicate how the command line option was invalid in language that can be understood by a Babel end user.

Parameters:
message - a message indicating how the option was invalid.