public class StoppedOnMaximumDurationException extends RuntimeException
RuntimeException
that gets thrown when a PropagateSegmentResults
was
stopped on its MaximumDuration
(get
/ set
) and if the segment was set
to throw if the Duration
was exceeded.Constructor and Description |
---|
StoppedOnMaximumDurationException()
Initializes a new instance with a default message.
|
StoppedOnMaximumDurationException(SegmentListResults cumulativeResults,
SegmentDefinition segmentIdentifier,
PropagateSegmentResults resultsOfStoppedSegment)
Initializes a new instance.
|
StoppedOnMaximumDurationException(String message)
Initializes a new instance with a specified message.
|
StoppedOnMaximumDurationException(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, up to and including the
SegmentPropagator
that stopped propagation. |
PropagateSegmentResults |
getResultsOfStoppedSegment()
Gets the
SegmentResults of the SegmentPropagator that stopped propagation. |
SegmentDefinition |
getSegmentIdentifier()
Gets the identifier of the
SegmentPropagator that stopped on a maximum Duration , if available. |
String |
getSegmentName()
Gets the name of the
SegmentPropagator that threw this exception. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public StoppedOnMaximumDurationException()
public StoppedOnMaximumDurationException(String message)
message
- The error message that explains the reason for the exception.public StoppedOnMaximumDurationException(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 StoppedOnMaximumDurationException(SegmentListResults cumulativeResults, SegmentDefinition segmentIdentifier, @Nonnull PropagateSegmentResults resultsOfStoppedSegment)
cumulativeResults
- The results of the entire propagation up to and including the SegmentPropagator
that stopped propagation.resultsOfStoppedSegment
- The SegmentResults
of the SegmentPropagator
that stopped propagation.segmentIdentifier
- The SegmentDefinition
of the SegmentPropagator
that stopped on a maximum Duration
.public final PropagateSegmentResults getResultsOfStoppedSegment()
SegmentResults
of the SegmentPropagator
that stopped propagation.public final SegmentListResults getCumulativeResults()
SegmentPropagator
that stopped propagation.public final String getSegmentName()
SegmentPropagator
that threw this exception.public final SegmentDefinition getSegmentIdentifier()
SegmentPropagator
that stopped on a maximum Duration
, if available.