gov.llnl.babel.cli
Class InvalidArgumentException

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

public class InvalidArgumentException
extends java.lang.Exception

This exception is thrown by a CommandLineSwitch when it receives an argument that's invalid. The message should be designed to be meaningful to an end user.

See Also:
Serialized Form

Constructor Summary
InvalidArgumentException(java.lang.String message)
          Create an exception to indicate to a Babel end user how the command line argument was invalid.
 
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

InvalidArgumentException

public InvalidArgumentException(java.lang.String message)
Create an exception to indicate to a Babel end user how the command line argument was invalid. If possible, the message should indicate how the argument was wrong. Babel will write "Babel: Error processing command line switch long form" with a newline where long form is replaced by the name of the long option before writing the message.

Parameters:
message - a message that will be shown to the Babel end user.