ParserException class
Exception thrown when attempting to create a non-linear expression.
During the creation of constraints or expressions using the overloaded operators, it may be possible to end up with non-linear expressions. Such expressions are not suitable for Constraint creation because the Solver will reject the same. A ParserException is thrown when a developer tries to create such an expression.
The only cases where this is possible is when trying to multiply two expressions where at least one of them is not a constant expression, or, when trying to divide two expressions where the divisor is not constant.
- Implemented types
Constructors
-
ParserException(String message, List<
EquationMember> members) - Creates a new ParserException with a given message and a list of the offending member for debugging purposes.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
members
↔ List<
EquationMember> -
The members that caused the exception.
getter/setter pair
- message → String
-
A detailed message describing the exception.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited