javax.time.calendar
Class InvalidCalendarFieldException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.time.CalendricalException
                  extended by javax.time.calendar.CalendricalRuleException
                      extended by javax.time.calendar.InvalidCalendarFieldException
All Implemented Interfaces:
java.io.Serializable

public class InvalidCalendarFieldException
extends CalendricalRuleException

An exception used when a calendrical field is invalid.

Some combinations of calendrical fields are not allowed, such as 'MonthOfYear 4' and 'DayOfMonth 31' (April 31st). This exception is used when an attempt is made to create such an invalid combination.

Author:
Stephen Colebourne
See Also:
Serialized Form

Constructor Summary
InvalidCalendarFieldException(java.lang.String message, CalendricalRule<?> rule)
          Constructs a new invalid field exception.
 
Method Summary
 
Methods inherited from class javax.time.calendar.CalendricalRuleException
getRule
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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

InvalidCalendarFieldException

public InvalidCalendarFieldException(java.lang.String message,
                                     CalendricalRule<?> rule)
Constructs a new invalid field exception.

Parameters:
message - the message describing the problem, should not be null
rule - the rule that is invalid, may be null