Package 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
-
-
Constructor Summary
Constructors Constructor Description UnknownFlagException(Character flag)
Creates a new UnknownFlagException referencing the specified parameter.UnknownFlagException(String flag)
Creates a new UnknownFlagException referencing the specified parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFlag()
Returns the unknown flag that was encountered.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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.
-
-
Method Detail
-
getFlag
public String getFlag()
Returns the unknown flag that was encountered.- Returns:
- the unknown flag that was encountered.
-
-