org.orekit.errors
Class TimeStampedCacheException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.orekit.errors.OrekitException
              extended by org.orekit.errors.TimeStampedCacheException
All Implemented Interfaces:
Serializable

public class TimeStampedCacheException
extends OrekitException

This class is the base class for all specific exceptions thrown by during the TimeStampedCache.

Author:
Luc Maisonobe
See Also:
Serialized Form

Constructor Summary
TimeStampedCacheException(ExceptionContextProvider provider)
          Simple constructor.
TimeStampedCacheException(Localizable specifier, Object... parts)
          Simple constructor.
TimeStampedCacheException(OrekitException exception)
          Simple constructor.
TimeStampedCacheException(Throwable cause, Localizable specifier, Object... parts)
          Simple constructor.
 
Method Summary
static TimeStampedCacheException unwrap(ExceptionContextProvider provider)
          Recover a PropagationException, possibly embedded in an ExceptionContextProvider.
static TimeStampedCacheException unwrap(OrekitException oe)
          Recover a PropagationException, possibly embedded in a OrekitException.
 
Methods inherited from class org.orekit.errors.OrekitException
createIllegalArgumentException, createIllegalStateException, createInternalError, createParseException, getLocalizedMessage, getMessage, getMessage, getParts, getSpecifier
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

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(ExceptionContextProvider provider)
Simple constructor. Build an exception wrapping an Apache Commons Math exception context exception

Parameters:
provider - underlying cause
Method Detail

unwrap

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

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

Parameters:
oe - OrekitException to analyze
Returns:
a (possibly embedded) PropagationException

unwrap

public static TimeStampedCacheException unwrap(ExceptionContextProvider provider)
Recover a PropagationException, possibly embedded in an ExceptionContextProvider.

If the ExceptionContextProvider does not embed a PropagationException, a new one will be created.

Parameters:
provider - ExceptionContextProvider to analyze
Returns:
a (possibly embedded) PropagationException


Copyright © 2016 CNES. All Rights Reserved.