ExpressionValueTypeMismatchException class
An exception thrown when DartBlock attempts to calculate the value of an expression, specifically a boolean or numeric expression, where the type of the calculated value does not match the expected type of the expression.
- Inheritance
-
- Object
- DartBlockException
- ExpressionValueTypeMismatchException
Constructors
-
ExpressionValueTypeMismatchException(DartBlockExpressionValue<
dynamic, DartBlockValueTreeNode> dynamicValue, dynamic concreteValue, Type expectedType, Type gotType)
Properties
- concreteValue ↔ dynamic
-
The value calculated when evaluating the expression.
getter/setter pair
-
dynamicValue
↔ DartBlockExpressionValue<
dynamic, DartBlockValueTreeNode> -
The boolean (DartBlockBooleanExpression) or numeric (DartBlockAlgebraicExpression) expression.
getter/setter pair
- expectedType ↔ Type
-
The expected type of the expression.
getter/setter pair
- gotType ↔ Type
-
The actual type of the concreteValue.
getter/setter pair
- 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
- message ↔ String
-
A short explanation of the exception.
getter/setter pairinherited
- 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