Class AlreadySelectedException

    • Constructor Detail

      • AlreadySelectedException

        public AlreadySelectedException​(String message)
        Construct a new AlreadySelectedException with the specified detail message.
        Parameters:
        message - the detail message
      • AlreadySelectedException

        public AlreadySelectedException​(OptionGroup group,
                                        Option option)
        Construct 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
    • Method Detail

      • getOptionGroup

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

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