org.orekit.errors
Class OrekitExceptionWrapper

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

public class OrekitExceptionWrapper
extends RuntimeException

This class allows to wrap OrekitException instances in RuntimeException.

Wrapping OrekitException instances is useful when a low level method throws one such exception and this method must be called from another one which does not allow this exception. Typical examples are propagation methods that are used inside Apache Commons optimizers, integrators or solvers.

Author:
Luc Maisonobe
See Also:
Serialized Form

Constructor Summary
OrekitExceptionWrapper(OrekitException wrappedException)
          Simple constructor.
 
Method Summary
 OrekitException getException()
          Get the wrapped exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

OrekitExceptionWrapper

public OrekitExceptionWrapper(OrekitException wrappedException)
Simple constructor.

Parameters:
wrappedException - Orekit exception to wrap
Method Detail

getException

public OrekitException getException()
Get the wrapped exception.

Returns:
wrapped exception


Copyright © 2016 CNES. All Rights Reserved.