public class InvalidFuelStateException extends RuntimeException
Constructor and Description |
---|
InvalidFuelStateException()
Initializes a new instance with a default message.
|
InvalidFuelStateException(SegmentDefinition segmentIdentifier,
String propagationElementThatRanOut,
SegmentListResults cumulativeResults)
Initializes a new instance.
|
InvalidFuelStateException(String message)
Initializes a new instance with a specified message.
|
InvalidFuelStateException(String message,
RuntimeException inner)
Initializes a new instance with a specified error message and a reference to the inner
exception that is the cause of this exception.
|
Modifier and Type | Method and Description |
---|---|
SegmentListResults |
getCumulativeResults()
Gets the results of the entire propagation, if available.
|
String |
getPropagationElementThatRanOut()
Gets the name of the propagation element that ran out of fuel.
|
SegmentDefinition |
getSegmentIdentifier()
Gets the
identifier of the segment that ran out of fuel, if available. |
String |
getSegmentName()
Gets the name of the
SegmentPropagator that threw the exception. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidFuelStateException()
public InvalidFuelStateException(String message)
message
- The error message that explains the reason for the exception.public InvalidFuelStateException(String message, RuntimeException inner)
message
- The error message that explains the reason for the exception.inner
- The exception that is the cause of the current exception.public InvalidFuelStateException(@Nonnull SegmentDefinition segmentIdentifier, String propagationElementThatRanOut, SegmentListResults cumulativeResults)
segmentIdentifier
- The identifier of the segment
that ran out of fuel.cumulativeResults
- The SegmentListResults
of propagation up to the SegmentPropagator
that
encountered this exception. This should not include the SegmentResults
of the segment that encountered
this RuntimeException
.propagationElementThatRanOut
- The name of the propagated position and velocity that ran out of fuel.public final SegmentDefinition getSegmentIdentifier()
identifier of the segment
that ran out of fuel, if available.public final String getPropagationElementThatRanOut()
public final SegmentListResults getCumulativeResults()
SegmentResults
of the
SegmentPropagator
that contained the maneuver that ran out of fuel.public final String getSegmentName()
SegmentPropagator
that threw the exception.