halo.userinterface.cmdline.cmdExceptions
Class InvalidFlagException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by halo.userinterface.cmdline.cmdExceptions.InvalidFlagException
All Implemented Interfaces:
java.io.Serializable

public class InvalidFlagException
extends java.lang.Exception

Exception that is called if a method is called with a flag that is not specified

Author:
Stefanie Kaufmann
See Also:
Serialized Form

Constructor Summary
InvalidFlagException()
          Creates a new exception
InvalidFlagException(java.lang.String s)
          Creates a new exception with the causing flag
 
Method Summary
 java.lang.String getFlag()
          Returns the causing flag
 
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

InvalidFlagException

public InvalidFlagException()
Creates a new exception


InvalidFlagException

public InvalidFlagException(java.lang.String s)
Creates a new exception with the causing flag

Parameters:
s - Flag which caused the exception
Method Detail

getFlag

public java.lang.String getFlag()
Returns the causing flag

Returns:
The causing flag