javax.time
Class CalendricalException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.time.CalendricalException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CalendricalParseException, CalendricalRuleException

public class CalendricalException
extends java.lang.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.

This class contains no state and is thread-safe.

Author:
Stephen Colebourne
See Also:
Serialized Form

Constructor Summary
CalendricalException(java.lang.String message)
          Constructs a new conversion exception with the specified message.
CalendricalException(java.lang.String message, java.lang.Throwable cause)
          Constructs a new conversion exception with the specified message and cause.
 
Method Summary
 
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

CalendricalException

public CalendricalException(java.lang.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(java.lang.String message,
                            java.lang.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