Class ExpressionParseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.cyclops.integrateddynamics.core.evaluate.expression.tree.ExpressionParseException
All Implemented Interfaces:
Serializable

public class ExpressionParseException extends Exception
An error in the text of an expression.
See Also:
  • Constructor Details

    • ExpressionParseException

      public ExpressionParseException(int position, net.minecraft.network.chat.MutableComponent component)
      Parameters:
      position - The character offset in the text where the error was found.
      component - A human-readable message.
    • ExpressionParseException

      public ExpressionParseException(int position, int end, net.minecraft.network.chat.MutableComponent component)
      Parameters:
      position - The character offset in the text where the error was found.
      end - The offset after the part of the text with the error, such as an unknown name.
      component - A human-readable message.
  • Method Details

    • getPosition

      public int getPosition()
    • getEnd

      public int getEnd()
      Returns:
      The offset after the part of the text with the error, or the position if it is not known.
    • getComponent

      public net.minecraft.network.chat.MutableComponent getComponent()