Class TimeStampedCacheException

    • Constructor Detail

      • TimeStampedCacheException

        public TimeStampedCacheException​(org.hipparchus.exception.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,
                                         org.hipparchus.exception.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​(org.hipparchus.exception.MathRuntimeException exception)
        Simple constructor. Build an exception from an Hipparchus exception
        Parameters:
        exception - underlying Hipparchus exception
    • Method Detail

      • 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​(org.hipparchus.exception.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