Class UnknownArgumentException

All Implemented Interfaces:
Serializable

public class UnknownArgumentException extends OptionException
Author:
flasbyst
See Also:
  • Constructor Details

    • UnknownArgumentException

      public UnknownArgumentException(String unknownArgument, Options options)
  • Method Details

    • getUnknownArgument

      public String getUnknownArgument()
    • getLocalizedMessage

      public String getLocalizedMessage()
      returns a localised message using an MLS key defined as the options mls key with "unknown" appended. This message should have a single parameter {0} which will be replaced by the unknown argument. For example: org.flasby.beantest.unknown=Unknown argument ''{0}''
      Overrides:
      getLocalizedMessage in class Throwable
    • getOption

      public Option getOption()
      Specified by:
      getOption in class OptionException