MalformedBooleanNumberComparisonExpressionException class

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

Cases include:

  • the left operand, the right operand and the operator being null. (example: <operand> <operator> <operand>)
  • the operator being null, while the left operand and the right operand are non-null. (example: 4 <operator> 5)
  • the left operand and the operator being null, while the right operand is non-null. (example: <operand> <operator> 5)
  • the right operand and the operator being null, while the left operand is non-null. (example: 4 <operator> <operand>)
  • the left operand and the right operand being null, while the operator is non-null. (example: <operand> == <operand>)
  • the left operand being null, while the right operand and the operator are non-null. (example: <operand> == 5)
  • the right operand being null, while the left operand and the operator are non-null. (example: 4 == <operand>)
Inheritance

Constructors

MalformedBooleanNumberComparisonExpressionException(bool? leftOperand, bool? rightOperand, DartBlockNumberComparisonOperator? 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 bool?
The left operand of the boolean expression.
getter/setter pair
message String
A short explanation of the exception.
getter/setter pairinherited
operator DartBlockNumberComparisonOperator?
The operator of the boolean expression.
getter/setter pair
reason String
A short explanation of the exception in the form of a sentence.
getter/setter pair
rightOperand bool?
The right operand of the boolean 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