Class TimeStampedCacheException

All Implemented Interfaces:
Serializable, LocalizedException

public class TimeStampedCacheException extends OrekitException
This class is the base class for all specific exceptions thrown by during the GenericTimeStampedCache.
Author:
Luc Maisonobe
See Also:
  • Constructor Details

    • TimeStampedCacheException

      public TimeStampedCacheException(Localizable specifier, Object... parts)
      Simple constructor. Build an exception with a translated and formatted message
      Parameters:
      specifier - format specifier (to be translated)
      parts - parts to insert in the format (no translation)
    • TimeStampedCacheException

      public TimeStampedCacheException(Throwable cause, Localizable specifier, Object... parts)
      Simple constructor. Build an exception from a cause and with a specified message
      Parameters:
      cause - underlying cause
      specifier - format specifier (to be translated)
      parts - parts to insert in the format (no translation)
    • TimeStampedCacheException

      public TimeStampedCacheException(OrekitException exception)
      Simple constructor. Build an exception wrapping an OrekitException instance
      Parameters:
      exception - underlying cause
    • TimeStampedCacheException

      public TimeStampedCacheException(MathRuntimeException exception)
      Simple constructor. Build an exception from an Hipparchus exception
      Parameters:
      exception - underlying Hipparchus exception
  • Method Details

    • unwrap

      public static TimeStampedCacheException unwrap(OrekitException oe)
      Recover a TimeStampedCacheException, possibly embedded in a OrekitException.

      If the OrekitException does not embed a TimeStampedCacheException, a new one will be created.

      Parameters:
      oe - OrekitException to analyze
      Returns:
      a (possibly embedded) TimeStampedCacheException
    • unwrap

      public static TimeStampedCacheException unwrap(MathRuntimeException exception)
      Recover a TimeStampedCacheException, possibly embedded in a MathRuntimeException.

      If the MathRuntimeException does not embed a TimeStampedCacheException, a new one will be created.

      Parameters:
      exception - MathRuntimeException to analyze
      Returns:
      a (possibly embedded) TimeStampedCacheException