Class AlreadySelectedException

    • Constructor Summary

      Constructors 
      Constructor Description
      AlreadySelectedException​(java.lang.String message)
      Constructs a new AlreadySelectedException with the specified detail message.
      AlreadySelectedException​(OptionGroup group, Option option)
      Constructs a new AlreadySelectedException for the specified option group.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Option getOption()
      Gets the option that was added to the group and triggered the exception.
      OptionGroup getOptionGroup()
      Gets the option group where another option has been selected.
      • 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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AlreadySelectedException

        public AlreadySelectedException​(OptionGroup group,
                                        Option option)
        Constructs a new AlreadySelectedException for the specified option group.
        Parameters:
        group - the option group already selected
        option - the option that triggered the exception
        Since:
        1.2
      • AlreadySelectedException

        public AlreadySelectedException​(java.lang.String message)
        Constructs a new AlreadySelectedException with the specified detail message.
        Parameters:
        message - the detail message
    • Method Detail

      • getOption

        public Option getOption()
        Gets the option that was added to the group and triggered the exception.
        Returns:
        the related option
        Since:
        1.2
      • getOptionGroup

        public OptionGroup getOptionGroup()
        Gets the option group where another option has been selected.
        Returns:
        the related option group
        Since:
        1.2