gov.llnl.babel.cli

Class NameCollisionException


public class NameCollisionException
extends Exception

This exception is thrown by CommandLineDictionary.addCommandLineSwitch(CommandLineSwitch) when the client attempts to add a switch that has the same name as an entry already in the dictionary.

Constructor Summary

NameCollisionException(CommandLineSwitch cls)
Create an exception indicating that there is a name space collision between command line switches.

Method Summary

CommandLineSwitch
getConflict()
Return the item in the dictionary with which the new entry conflicts.

Constructor Details

NameCollisionException

public NameCollisionException(CommandLineSwitch cls)
Create an exception indicating that there is a name space collision between command line switches. The exception holds the dictionary entry that the new item conflicted with.
Parameters:
cls - the command line switch that the new entry conflicted with

Method Details

getConflict

public CommandLineSwitch getConflict()
Return the item in the dictionary with which the new entry conflicts.