Class UnknownFlagException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.martiansoftware.jsap.JSAPException
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

    Constructors
    Constructor Description
    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

    Modifier and Type Method Description
    java.lang.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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • 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 Details

    • getFlag

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