models/exception library
Exceptions / Errors
- CustomFunctionArgumentsCountException
- An exception thrown when DartBlock attempts to execute a FunctionCallStatement, where the number of arguments passed to the function call does not match the expected number based on the parameter list of the function.
- CustomFunctionInvalidReturnValueTypeException
- An exception thrown when DartBlock attempts to execute a FunctionCallStatement, where the relevant ReturnStatement in the function's body returns a value of the wrong type, compared to the expected return type of the function.
- CustomFunctionMissingArgumentException
- An exception thrown when DartBlock attempts to execute a FunctionCallStatement, where one of the argument's value type does not match the corresponding function parameter's type. (based on parameter position/index)
- CustomFunctionMissingReturnValueException
- An exception thrown when DartBlock attempts to execute a FunctionCallStatement, where the custom function does not terminate with a ReturnStatement.
- CustomFunctionNoReturnValueExpectedException
- An exception thrown when DartBlock attempts to execute a FunctionCallStatement, where a ReturnStatement is executed as part of the function's body, but the function's return type is 'void'.
- DartBlockException
- An exception which can be thrown during the execution of a DartBlockProgram.
- DynamicValueTypeMismatchException
- An exception thrown when DartBlock attempts to retrieve the value associated with a DartBlockVariable or DartBlockFunctionCallValue, where the type of the retrieved value does not match the expected type.
- EvaluatorEvaluationSerializationException
- An exception thrown when the JSON decoding via DartBlockEvaluation.fromJson fails. This is not a DartBlockException thrown during a program's execution or shown to the user.
- EvaluatorSchemaSerializationException
- An exception thrown when the JSON decoding via DartBlockEvaluationSchema.fromJson fails. This is not a DartBlockException thrown during a program's execution or shown to the user.
- ExpressionValueTypeMismatchException
- 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.
- InvalidVariableNameException
- An exception thrown when DartBlock attempts to execute a VariableDeclarationStatement, based on the validation provided by DartBlockValidator.validateVariableName.
- MalformedAlgebraicExpressionException
- An exception thrown by DartBlock when calculating the value of a DartBlockAlgebraicExpression.
- MalformedBooleanEqualityExpressionException
- An exception thrown by DartBlock when calculating the value of a DartBlockBooleanExpression.
- MalformedBooleanLogicalExpressionException
- An exception thrown by DartBlock when calculating the value of a DartBlockBooleanExpression.
- MalformedBooleanNumberComparisonExpressionException
- An exception thrown by DartBlock when calculating the value of a DartBlockBooleanExpression.
- StatementSerializationException
- An exception thrown when the JSON decoding via Statement.fromJson fails. This is not a DartBlockException thrown during a program's execution or shown to the user.
- UndefinedCustomFunctionException
- An exception thrown when DartBlock attempts to execute a FunctionCallStatement, where the relevant custom function can not be retrieved based on the given name.
- VariableAlreadyDeclaredException
- An exception thrown when DartBlock runs into a second VariableDeclarationStatement which is attempting to re-declare an existing statement, based on its name.
- VariableNotDeclaredException
- An exception thrown when DartBlock attempts to look up a variable's value by its name during execution, but it does not exist.
- VariableValueTypeMismatchException
- An exception thrown when DartBlock attempts to execute a VariableAssignmentStatement, where the type of the value being assigned does not match the type of the variable.