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

public class EvaluationException extends Exception
Exception to indicate a failed evaluation.
See Also:
  • 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

      public void addResolutionListeners(Runnable listener)
    • 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 to retryEvaluation, this may be invoked anywhere within the lifetime of evaluation exceptions.