com.openexchange.admin.console
Class CLIIllegalOptionValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.openexchange.admin.console.CLIOptionException
              extended by com.openexchange.admin.console.CLIIllegalOptionValueException
All Implemented Interfaces:
Serializable

public class CLIIllegalOptionValueException
extends CLIOptionException

CLIIllegalOptionValueException - Indicates an illegal or missing value.

Author:
Thorben Betten
See Also:
Serialized Form

Constructor Summary
CLIIllegalOptionValueException(CLIOption opt, String value)
           
CLIIllegalOptionValueException(CLIOption opt, String value, Throwable cause)
           
 
Method Summary
 CLIOption getOption()
          Gets the name of the option whose value was illegal.
 String getValue()
          Gets the illegal value.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CLIIllegalOptionValueException

public CLIIllegalOptionValueException(CLIOption opt,
                                      String value)

CLIIllegalOptionValueException

public CLIIllegalOptionValueException(CLIOption opt,
                                      String value,
                                      Throwable cause)
Method Detail

getOption

public CLIOption getOption()
Gets the name of the option whose value was illegal.

Returns:
The name of the option whose value was illegal (e.g. "-u")

getValue

public String getValue()
Gets the illegal value.

Returns:
The illegal value