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.

Implements

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

members List<EquationMember>

The members that caused the exception.

read / write
message String

A detailed message describing the exception.

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

toString() String

Returns a string representation of this object.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited