Object
Throwable
Exception
RuntimeException
java.time.DateTimeException
IndeterminatePositionException
- All Implemented Interfaces:
Serializable
Thrown when a temporal operation cannot be performed because a position has an indeterminate value.
Example
This exception should be thrown byInstant.distance(TemporalPrimitive)
if
Instant.getIndeterminatePosition()
returns a non-empty value different than
IndeterminateValue.NOW
.- Since:
- 3.1
- See Also:
-
Constructor Summary
ConstructorDescriptionIndeterminatePositionException
(String message) Constructs an exception with the specified detail message.IndeterminatePositionException
(String message, Throwable cause) Constructs an exception with the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IndeterminatePositionException
Constructs an exception with the specified detail message.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.
-
IndeterminatePositionException
Constructs an exception with the specified detail message and cause.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.cause
- the cause, saved for later retrieval by theThrowable.getCause()
method.
-