org.orekit.errors
Class PropagationException

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

public class PropagationException
extends OrekitException

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

Author:
Luc Maisonobe
See Also:
Serialized Form

Constructor Summary
PropagationException(ExceptionContextProvider provider)
          Simple constructor.
PropagationException(Localizable specifier, Object... parts)
          Simple constructor.
PropagationException(OrekitException exception)
          Simple constructor.
PropagationException(Throwable cause, Localizable specifier, Object... parts)
          Simple constructor.
 
Method Summary
static PropagationException unwrap(ExceptionContextProvider provider)
          Recover a PropagationException, possibly embedded in an ExceptionContextProvider.
static PropagationException 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

PropagationException

public PropagationException(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)

PropagationException

public PropagationException(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)

PropagationException

public PropagationException(OrekitException exception)
Simple constructor. Build an exception wrapping an OrekitException instance

Parameters:
exception - underlying cause

PropagationException

public PropagationException(ExceptionContextProvider provider)
Simple constructor. Build an exception wrapping an Apache Commons Math exception context exception

Parameters:
provider - underlying cause
Method Detail

unwrap

public static PropagationException 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 PropagationException 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.