MalformedAlgebraicExpressionException class

An exception thrown by DartBlock when calculating the value of a DartBlockAlgebraicExpression.

Cases include:

  • division by zero.
  • the use of the module (%) operator with a negative right operand.
  • a missing operator when both the left and right operand are non-null.
  • the left operand and right operand both being null.
  • the left operand, the right operand and the operator all being null.
  • the left operand being null, the right operand being non-null and the operator being either '*', '/' or '%'.

See DartBlockValueTreeAlgebraicOperatorNode.getValue for the implementation details.

Inheritance

Constructors

MalformedAlgebraicExpressionException(num? leftOperand, num? rightOperand, DartBlockAlgebraicOperator? operator, String reason)

Properties

hashCode → int
The hash code for this object.
no setterinherited
internalMessage ↔ String
An explanation of the exception for internal usage, e.g., logging.
getter/setter pairinherited
isGeneric ↔ bool
Whether the exception stems from Dart's own engine, or it is simply an unknown exception.
getter/setter pairinherited
leftOperand ↔ num?
The left operand of the algebraic expression.
getter/setter pair
message ↔ String
A short explanation of the exception.
getter/setter pairinherited
operator ↔ DartBlockAlgebraicOperator?
The operator of the algebraic expression.
getter/setter pair
reason ↔ String
A short explanation of the exception in the form of a sentence.
getter/setter pair
rightOperand ↔ num?
The right operand of the algebraic expression.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statement ↔ Statement?
The statement which caused the exception to be thrown.
getter/setter pairinherited
title ↔ String
The descriptive title of the exception.
getter/setter pairinherited

Methods

describe({bool includeThrownBy = true}) → String
Used for the output of certain evaluation schemas.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited