Class CalendricalRuleException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private CalendricalRule<?> rule
      The rule that caused the exception.
      private static long serialVersionUID
      A serialization identifier for this class.
    • Constructor Summary

      Constructors 
      Constructor Description
      CalendricalRuleException​(java.lang.String message, CalendricalRule<?> fieldRule)
      Constructs a new exception with a message and optional rule.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CalendricalRule<?> getRule()
      Gets the rule that is connected to the exception.
      • 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
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        A serialization identifier for this class.
        See Also:
        Constant Field Values
      • rule

        private final CalendricalRule<?> rule
        The rule that caused the exception.
    • Constructor Detail

      • CalendricalRuleException

        public CalendricalRuleException​(java.lang.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