gov.llnl.babel.cli
Class NameCollisionException

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

public class NameCollisionException
extends java.lang.Exception

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

See Also:
Serialized Form

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.
 
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

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 Detail

getConflict

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