MalformedBooleanLogicalExpressionException class

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

Cases include:

  • a missing operator (||, &&) when the left and right operand are non-null.
  • the left operand and right operand being null while the operator is not null.
  • the left operand, the right operand and the operator being null.
Inheritance

Constructors

MalformedBooleanLogicalExpressionException(bool? leftOperand, bool? rightOperand, DartBlockBooleanOperator? 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 DartBlockBooleanOperator?
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