Package org.orekit.errors
Class TimeStampedCacheException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.orekit.errors.OrekitException
-
- org.orekit.errors.TimeStampedCacheException
-
- All Implemented Interfaces:
Serializable,LocalizedException
public class TimeStampedCacheException extends OrekitException
This class is the base class for all specific exceptions thrown by during theGenericTimeStampedCache.- Author:
- Luc Maisonobe
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimeStampedCacheException(Throwable cause, org.hipparchus.exception.Localizable specifier, Object... parts)Simple constructor.TimeStampedCacheException(org.hipparchus.exception.Localizable specifier, Object... parts)Simple constructor.TimeStampedCacheException(org.hipparchus.exception.MathRuntimeException exception)Simple constructor.TimeStampedCacheException(OrekitException exception)Simple constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimeStampedCacheExceptionunwrap(org.hipparchus.exception.MathRuntimeException exception)Recover a TimeStampedCacheException, possibly embedded in aMathRuntimeException.static TimeStampedCacheExceptionunwrap(OrekitException oe)Recover a TimeStampedCacheException, possibly embedded in aOrekitException.-
Methods inherited from class org.orekit.errors.OrekitException
getLocalizedMessage, getMessage, getMessage, getParts, getSpecifier
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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 causespecifier- 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 anOrekitExceptioninstance- 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 aOrekitException.If the
OrekitExceptiondoes 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 aMathRuntimeException.If the
MathRuntimeExceptiondoes not embed a TimeStampedCacheException, a new one will be created.- Parameters:
exception- MathRuntimeException to analyze- Returns:
- a (possibly embedded) TimeStampedCacheException
-
-