Class EvaluationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.cyclops.integrateddynamics.api.evaluate.EvaluationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidValueTypeException
Exception to indicate a failed evaluation.
- See Also:
-
Constructor Summary
ConstructorDescriptionEvaluationException
(net.minecraft.network.chat.MutableComponent errorMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResolutionListeners
(Runnable listener) net.minecraft.network.chat.MutableComponent
boolean
void
resolve()
If evaluators halt operation due to this thrown evaluation, invoking this method will cause them to remove the exception and resume operation.void
setRetryEvaluation
(boolean retryEvaluation) This should only be set at construction time of this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EvaluationException
public EvaluationException(net.minecraft.network.chat.MutableComponent errorMessage)
-
-
Method Details
-
getErrorMessage
public net.minecraft.network.chat.MutableComponent getErrorMessage() -
setRetryEvaluation
public void setRetryEvaluation(boolean retryEvaluation) This should only be set at construction time of this exception.- Parameters:
retryEvaluation
- If the evaluation may be retried again in the next tick.
-
isRetryEvaluation
public boolean isRetryEvaluation()- Returns:
- If the evaluation may be retried again in the next tick.
-
addResolutionListeners
-
resolve
public void resolve()If evaluators halt operation due to this thrown evaluation, invoking this method will cause them to remove the exception and resume operation. In contrast toretryEvaluation
, this may be invoked anywhere within the lifetime of evaluation exceptions.
-