EvaluationError class
ISO 7.2.3.f: Error when evaluation fails.
Example: Division by zero, undefined arithmetic operation.
- Inheritance
-
- Object
- PrologException
- EvaluationError
Constructors
- EvaluationError({required String error, required String message, String? context})
-
const
Properties
- context → String?
-
Optional context information (e.g., predicate name, line number).
finalinherited
- error → String
-
The specific evaluation error (e.g., 'zero_divisor', 'undefined').
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Human-readable error message.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited