Package javax.time

Class CalendricalException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CalendarConversionException, CalendricalParseException, CalendricalPrintException, CalendricalRuleException

public class CalendricalException extends RuntimeException
The base class for all exceptions in the Time Framework for Java.

All exceptions in the Time Framework for Java extend this class. This allows catch blocks to catch just this exception, or more specific ones.

See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      A serialization identifier for this class.
      See Also:
  • Constructor Details

    • CalendricalException

      public CalendricalException(String message)
      Constructs a new conversion exception with the specified message.
      Parameters:
      message - the message to use for this exception, may be null
    • CalendricalException

      public CalendricalException(String message, Throwable cause)
      Constructs a new conversion exception with the specified message and cause.
      Parameters:
      message - the message to use for this exception, may be null
      cause - the cause of the exception, may be null