Class CalendricalRuleException

    • Constructor Detail

      • CalendricalRuleException

        public CalendricalRuleException​(String message,
                                        CalendricalRule<?> fieldRule)
        Constructs a new exception with a message and optional rule.
        Parameters:
        message - the message describing the problem, should not be null
        fieldRule - the rule of the field that is not supported, may be null
    • Method Detail

      • getRule

        public CalendricalRule<?> getRule()
        Gets the rule that is connected to the exception.
        Returns:
        the field rule, null if unknown