Class ExpressionParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.cyclops.integrateddynamics.core.evaluate.expression.tree.ExpressionParseException
- All Implemented Interfaces:
Serializable
An error in the text of an expression.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionParseException(int position, int end, net.minecraft.network.chat.MutableComponent component) ExpressionParseException(int position, net.minecraft.network.chat.MutableComponent component) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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()
-