com.martiansoftware.jsap
Class UnknownFlagException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.martiansoftware.jsap.JSAPException
com.martiansoftware.jsap.UnknownFlagException
- All Implemented Interfaces:
- Serializable
- public class UnknownFlagException
- extends JSAPException
An exception indicating that a unknown flag has been specified.
- Author:
- Marty Lamb
- See Also:
Flagged
,
Serialized Form
Method Summary |
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 |
UnknownFlagException
public UnknownFlagException(String flag)
- Creates a new UnknownFlagException referencing the specified parameter.
- Parameters:
flag
- the unknown flag that was encountered.
UnknownFlagException
public UnknownFlagException(Character flag)
- Creates a new UnknownFlagException referencing the specified parameter.
- Parameters:
flag
- the unknown flag that was encountered.
getFlag
public 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