com.martiansoftware.jsap
Class UnknownFlagException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.martiansoftware.jsap.JSAPException
              extended by com.martiansoftware.jsap.UnknownFlagException
All Implemented Interfaces:
java.io.Serializable

public class UnknownFlagException
extends JSAPException

An exception indicating that a unknown flag has been specified.

Author:
Marty Lamb
See Also:
Flagged, Serialized Form

Constructor Summary
UnknownFlagException(java.lang.Character flag)
          Creates a new UnknownFlagException referencing the specified parameter.
UnknownFlagException(java.lang.String flag)
          Creates a new UnknownFlagException referencing the specified parameter.
 
Method Summary
 java.lang.String getFlag()
          Returns the unknown flag that was encountered.
 
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

UnknownFlagException

public UnknownFlagException(java.lang.String flag)
Creates a new UnknownFlagException referencing the specified parameter.

Parameters:
flag - the unknown flag that was encountered.

UnknownFlagException

public UnknownFlagException(java.lang.Character flag)
Creates a new UnknownFlagException referencing the specified parameter.

Parameters:
flag - the unknown flag that was encountered.
Method Detail

getFlag

public java.lang.String getFlag()
Returns the unknown flag that was encountered.

Returns:
the unknown flag that was encountered.


Copyright © 2002-2006, Martian Software, Inc.. All Rights Reserved.
For the latest version and documentation, please visit http://www.martiansoftware.com/jsap