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
This class is the base class for all specific exceptions thrown by
during the
GenericTimeStampedCache.- Author:
- Luc Maisonobe
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTimeStampedCacheException(Throwable cause, Localizable specifier, Object... parts) Simple constructor.TimeStampedCacheException(Localizable specifier, Object... parts) Simple constructor.TimeStampedCacheException(MathRuntimeException exception) Simple constructor.TimeStampedCacheException(OrekitException exception) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeStampedCacheExceptionunwrap(MathRuntimeException exception) Recover a TimeStampedCacheException, possibly embedded in aMathRuntimeException.static TimeStampedCacheExceptionRecover a TimeStampedCacheException, possibly embedded in aOrekitException.Methods inherited from class org.orekit.errors.OrekitException
getLocalizedMessage, getMessage, getMessage, getParts, getSpecifierMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TimeStampedCacheException
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
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
Simple constructor. Build an exception wrapping anOrekitExceptioninstance- Parameters:
exception- underlying cause
-
TimeStampedCacheException
Simple constructor. Build an exception from an Hipparchus exception- Parameters:
exception- underlying Hipparchus exception
-
-
Method Details
-
unwrap
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
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
-