gov.llnl.babel.cli

Class InvalidArgumentException


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

Constructor Summary

InvalidArgumentException(String message)
Create an exception to indicate to a Babel end user how the command line argument was invalid.

Constructor Details

InvalidArgumentException

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