|
JEphem site tig API Build classes |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--jephem.astro.solarsystem.ComputationException
Exception to throw when the computation of a planet can't be done correctly.
This exception may be thrown in two cases :
Field Summary | |
static int |
DATE_LIMIT_ERROR
Constant to indicate that this exception is due to a date out of range problem. |
static int |
PRECISION_ERROR
Constant to indicate that this exception is due to a precision problem. |
Constructor Summary | |
ComputationException(int errorType,
int bodyIndex,
double julianDay,
int timeFrame)
Constructor |
Method Summary | |
int |
getBodyIndex()
Returns the body index of this exception. |
int |
getErrorType()
Returns the error type of this exception. |
double |
getJulianDay(int timeFrame)
Returns the julian day concerned by this 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 |
Field Detail |
public static final int DATE_LIMIT_ERROR
public static final int PRECISION_ERROR
Constructor Detail |
public ComputationException(int errorType, int bodyIndex, double julianDay, int timeFrame)
errorType
- To specify what caused this exception ; use constants of this class to specify it.bodyIndex
- The body concerned by this exception.julianDay
- The julian day for which this exception occured.timeFrame
- The time frame used to express 'julianDay. Use TimeConstants
for it.Method Detail |
public int getBodyIndex()
public int getErrorType()
public double getJulianDay(int timeFrame)
timeFrame
- The time frame (UTC or TT/TDB) in which the julian day must be returned ; use
TimeConstants
constants for it.
|
JEphem site tig API Build classes |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |