gov.llnl.babel.cli

Class InvalidOptionException


public class InvalidOptionException
extends 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.

Constructor Summary

InvalidOptionException(String message)
Create an exception to indicate that Babel received an invalid option on the command line.

Constructor Details

InvalidOptionException

public InvalidOptionException(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.